adding rocprofiler_get_time API
Change-Id: I9202b3e97f8f9ca7485f87ea22746a9c4d8091c3
This commit is contained in:
@@ -843,4 +843,13 @@ PUBLIC_API hsa_status_t rocprofiler_queue_create_profiled(
|
||||
return rocprofiler::InterceptQueue::QueueCreateTracked(agent, size, type, callback, data, private_segment_size, group_segment_size, queue);
|
||||
}
|
||||
|
||||
// Return time for a given time ID and profiling timetsamp value
|
||||
hsa_status_t rocprofiler_get_time(
|
||||
rocprofiler_time_id_t time_id,
|
||||
uint64_t value,
|
||||
uint64_t* time)
|
||||
{
|
||||
return rocprofiler::util::HsaRsrcFactory::Instance().GetTime(time_id, value, time);
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user