Introduce a new API roctracer_get_timestamp().
roctracer_status_t roctracer_get_timestamp(uint64_t* timestamp); Get system timestamp for roctracer clients. The API could be used to help roctracer clients understand the reference frame of timestamps when receiving activity callbacks, as the nanoseconds reported in the activity callbacks are not in the same reference frame as CPU walltime clock.
Этот коммит содержится в:
1 родитель
23a1d54acf
Коммит
b7aa8fedb7
2 files changed
+10
No files matched your search
@@ -225,6 +225,10 @@ bool roctracer_load(
|
||||
|
||||
void roctracer_unload(bool destruct);
|
||||
|
||||
// Get system timestamp.
|
||||
roctracer_status_t roctracer_get_timestamp(
|
||||
uint64_t* timestamp);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C" block
|
||||
#endif // __cplusplus
|
||||
|
||||
Reference in new issue
Block a user