Skip to content

Commit 87d9ca8

Browse files
committed
Update source code to support upcoming RDTS release
1 parent b67c600 commit 87d9ca8

20 files changed

+3841
-352
lines changed

source/backend/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ENDIF(WIN32)
1616

1717
# List of all source files. It may be possible to have the build process call cmake to update the makefiles
1818
# only when this file has changed (ie source files have been added or removed)
19+
1920
set( SOURCES
2021
"rmt_adapter_info.cpp"
2122
"rmt_adapter_info.h"
@@ -36,6 +37,10 @@ set( SOURCES
3637
"rmt_linear_buffer.h"
3738
"rmt_legacy_snapshot_writer.cpp"
3839
"rmt_legacy_snapshot_writer.h"
40+
"rmt_memory_event_history.cpp"
41+
"rmt_memory_event_history.h"
42+
"rmt_memory_event_history_impl.cpp"
43+
"rmt_memory_event_history_impl.h"
3944
"rmt_mutex.cpp"
4045
"rmt_mutex.h"
4146
"rmt_page_table.cpp"
@@ -56,6 +61,8 @@ set( SOURCES
5661
"rmt_resource_history.h"
5762
"rmt_resource_list.cpp"
5863
"rmt_resource_list.h"
64+
"rmt_resource_userdata.cpp"
65+
"rmt_resource_userdata.h"
5966
"rmt_segment_info.h"
6067
"rmt_snapshot_writer.cpp"
6168
"rmt_snapshot_writer.h"

source/backend/rmt_data_set.cpp

Lines changed: 255 additions & 271 deletions
Large diffs are not rendered by default.

source/backend/rmt_data_set.h

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "rmt_process_map.h"
1818
#include "rmt_process_start_info.h"
1919
#include "rmt_rdf_system_info.h"
20+
#include "rmt_resource_userdata.h"
2021
#include "rmt_segment_info.h"
2122
#include "rmt_token_heap.h"
2223
#include "rmt_types.h"
@@ -96,6 +97,7 @@ typedef struct RmtDataSet
9697

9798
bool is_rdf_trace; ///< A flag that indicates, if true, that the trace is RDF format. Otherwise, false.
9899
bool is_resource_name_processing_complete; ///< A flag that indicates, if true, that resource names have been processed for the loaded memory trace.
100+
bool contains_correlation_tokens; ///< A flag that indicates, if true, that the trace contain correlation tokens.
99101
uint32_t active_gpu; ///< The active GPU used by the application process that was captured.
100102
RmtSnapshotWriterHandle snapshot_writer_handle; ///< The object responsible for writing snapshots to the trace file.
101103
} RmtDataSet;
@@ -253,19 +255,6 @@ RmtErrorCode RmtDataSetRenameSnapshot(RmtDataSet* data_set, const int32_t snapsh
253255
/// The series index.
254256
int32_t RmtDataSetGetSeriesIndexForTimestamp(RmtDataSet* data_set, uint64_t timestamp);
255257

256-
/// Retrieve the resource name associated with a resource.
257-
///
258-
/// @param [in] resource_id The resource identifier for the name to be retrieved.
259-
/// @param [out] out_resource_name A pointer to the resource name.
260-
///
261-
/// @returns
262-
/// kRmtOk The operation completed successfully.
263-
/// @retval
264-
/// kRmtErrorInvalidPointer The operation failed due to <c><i>out_resource_name</i></c> being an invalid pointer.
265-
/// @retval
266-
/// kRmtErrorResourceNotFound A resource name could not be found for the <c><i>resource_id</i></c> specified.
267-
RmtErrorCode RmtDataSetGetResourceName(const RmtResourceIdentifier resource_id, const char** out_resource_name);
268-
269258
#ifdef __cplusplus
270259
}
271260
#endif // #ifdef __cplusplus

source/backend/rmt_memory_event_history.cpp

Lines changed: 1360 additions & 0 deletions
Large diffs are not rendered by default.

source/backend/rmt_memory_event_history.h

Lines changed: 598 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)