Download perfetto trace_processor_shell (#105)
* Download perfetto trace_processor_shell
* Upgrade to perfetto-trace-processor-shell v0.0.4
* Fix run-ci.py warning
- warning message:
CMake Warning (dev) at /.../build/CTestCustom.cmake:16:
Syntax Warning in cmake code at column 77
Argument not separated from preceding token by whitespace.
* Update tests/pytest-packages/pytest_utils/perfetto_reader.py
---------
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
[ROCm/rocprofiler-sdk commit: 2c3bdeaed9]
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
@@ -31,6 +32,11 @@ from collections import OrderedDict
|
||||
from perfetto.trace_processor import TraceProcessor, TraceProcessorConfig
|
||||
|
||||
|
||||
PerfettoTraceProcessorShellPath = os.path.join(
|
||||
os.path.dirname(__file__), "trace_processor_shell"
|
||||
)
|
||||
|
||||
|
||||
class PerfettoReader:
|
||||
"""Read in perfetto protobuf output"""
|
||||
|
||||
@@ -168,6 +174,10 @@ class PerfettoReader:
|
||||
cfg = TraceProcessorConfig(verbose=verbosity)
|
||||
if hasattr(cfg, "load_timeout"):
|
||||
cfg.load_timeout = timeout_v + i
|
||||
if hasattr(cfg, "bin_path") and os.path.exists(
|
||||
PerfettoTraceProcessorShellPath
|
||||
):
|
||||
cfg.bin_path = PerfettoTraceProcessorShellPath
|
||||
return TraceProcessor(trace=(trace_v), config=cfg)
|
||||
except Exception as e:
|
||||
nwait = i + 1
|
||||
|
||||
Reference in New Issue
Block a user