adding rocprofiler_get_time API
Change-Id: I9202b3e97f8f9ca7485f87ea22746a9c4d8091c3
This commit is contained in:
+13
-1
@@ -376,13 +376,25 @@ hsa_status_t rocprofiler_query_info(
|
||||
hsa_status_t (*callback)(const rocprofiler_info_data_t info, void *data), // callback
|
||||
void *data); // [in/out] data passed to callback
|
||||
|
||||
// Creates a profiled queue. All dispatches on this queue will be profiled
|
||||
// Create a profiled queue. All dispatches on this queue will be profiled
|
||||
hsa_status_t rocprofiler_queue_create_profiled(
|
||||
hsa_agent_t agent_handle,uint32_t size, hsa_queue_type32_t type,
|
||||
void (*callback)(hsa_status_t status, hsa_queue_t* source, void* data),
|
||||
void* data, uint32_t private_segment_size, uint32_t group_segment_size,
|
||||
hsa_queue_t** queue);
|
||||
|
||||
// Convert profiler time
|
||||
typedef enum {
|
||||
ROCPROFILER_TIME_ID_CLOCK_REALTIME = 0,
|
||||
ROCPROFILER_TIME_ID_CLOCK_MONOTONIC = 1,
|
||||
} rocprofiler_time_id_t;
|
||||
|
||||
// Return time for a given time ID and profiling timetsamp value
|
||||
hsa_status_t rocprofiler_get_time(
|
||||
rocprofiler_time_id_t time_id, // identifier of the particular time to convert the timesatmp
|
||||
uint64_t value, // profiling timestamp value
|
||||
uint64_t* time); // returned time
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Profiling pool
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user