Add support for VA-API and rocDecode tracing (#92)

- VA API tracing using Timemory gotcha wrappers.
- rocDecode API tracing integration using callback to ROCPROFILER_CALLBACK_TRACING_ROCDECODE_API
- Updated videodecode ctest to validate rocDecode APIs in perfetto trace.
This commit is contained in:
Sajina PK authored and GitHub committed 2025-02-11 13:08:23 -05:00
1 parent e437200e9e
commit 697d1ac02f
21 files changed
+6235 -22

No files matched your search

+4 -2
View File
@@ -9,12 +9,14 @@ rocprofiler_systems_add_test(
NAME videodecode
TARGET videodecode
GPU ON
ENVIRONMENT
"${_base_environment};ROCPROFSYS_ROCM_DOMAINS=hip_runtime_api,kernel_dispatch,memory_copy,rocdecode_api"
RUN_ARGS -i ${PROJECT_BINARY_DIR}/videos -t 1
LABELS "videodecode")
rocprofiler_systems_add_validation_test(
NAME videodecode-sampling
PERFETTO_METRIC "host"
PERFETTO_METRIC "rocm_rocdecode_api"
PERFETTO_FILE "perfetto-trace.proto"
LABELS "videodecode"
ARGS -l videodecode -c 1 -d 0 --counter-names "GPU VCN Activity")
ARGS -l rocDecCreateVideoParser -c 2 -d 1 --counter-names "GPU VCN Activity")
+1 -1
View File
@@ -191,7 +191,7 @@ if __name__ == "__main__":
total_value = 0
for row in sum_counter_values:
total_value = row.total_value if row.total_value is not None else -1
if total_value < 0:
if total_value <= 0:
ret = 1
if ret == 0: