Add support for rocJPEG API tracing (#116)
- Add rocDecode API Tracing support using domain `rocjpeg_api` in ROCPROFSYS_ROCM_DOMAINS.
- Modify existing `videodecode` and `jpegdecode` ctests to verify API tracing
- Print Perfetto values for easy debugging in verbose mode
- Convert CMake error to a warning and skip building the "decode" examples if requirements are not found
[ROCm/rocprofiler-systems commit: 3bea1d8eac]
This commit is contained in:
@@ -1885,7 +1885,9 @@ get_use_vaapi_tracing()
|
||||
std::string domains = static_cast<tim::tsettings<std::string>&>(*_v->second).get();
|
||||
auto domain_list = tim::delimit(domains, " ,;:\t\n");
|
||||
return std::find(domain_list.begin(), domain_list.end(), "rocdecode_api") !=
|
||||
domain_list.end();
|
||||
domain_list.end() ||
|
||||
std::find(domain_list.begin(), domain_list.end(), "rocjpeg_api") !=
|
||||
domain_list.end(); // Check rocdecode_api or rocjpeg_api is present
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user