Merge pull request #31 from whchung/feature-roctracer_get_timestamp

[Feature] Introduce a new API roctracer_get_timestamp().

[ROCm/roctracer commit: e212670fe8]
이 커밋은 다음에 포함됨:
eshcherb 작성하고 GitHub가 2019-12-26 17:41:44 -06:00를 커밋함
커밋 8ea470b143
2 파일이 변경됨
+10

검색과 일치하는 파일 없음

+6
파일 보기
@@ -1119,6 +1119,12 @@ PUBLIC_API void roctracer_unload(bool destruct) {
ONLOAD_TRACE_END();
}
PUBLIC_API roctracer_status_t roctracer_get_timestamp(uint64_t* timestamp) {
API_METHOD_PREFIX
*timestamp = util::HsaRsrcFactory::Instance().TimestampNs();
API_METHOD_SUFFIX
}
PUBLIC_API bool OnLoad(HsaApiTable* table, uint64_t runtime_version, uint64_t failed_tool_count,
const char* const* failed_tool_names) {
ONLOAD_TRACE_BEG();