Update rocprofv3/tracing-hip-in-libraries test config and validation (#871)
* Update rocprofv3/tracing-hip-in-libraries test config and validation
- enable marker tracing
- remove hip compiler tracing
* Update tests/pytest-packages/pytest_utils/perfetto_reader.py
- handle intermittent failures to construct trace processor
[ROCm/rocprofiler-sdk commit: f14f5a994e]
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
9fde046078
commit
116717e64a
@@ -23,6 +23,8 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
import pandas as pd
|
||||
|
||||
from collections import OrderedDict
|
||||
@@ -157,10 +159,22 @@ class PerfettoReader:
|
||||
|
||||
_new_filenames = [x for x in self.filename if x not in _filenames]
|
||||
|
||||
def construct_trace_processor(trace_v):
|
||||
for i in range(4):
|
||||
try:
|
||||
return TraceProcessor(trace=(trace_v))
|
||||
except Exception as e:
|
||||
nwait = i + 1
|
||||
sys.stderr.write(
|
||||
f"{e}\n\nRetrying trace processor construction after {nwait} seconds...\n"
|
||||
)
|
||||
sys.stderr.flush()
|
||||
time.sleep(nwait)
|
||||
|
||||
if len(self.filename) + len(_new_filenames) != len(self.trace_processor):
|
||||
self.trace_processor = [TraceProcessor(trace=(f)) for f in self.filename]
|
||||
self.trace_processor = [construct_trace_processor(f) for f in self.filename]
|
||||
elif _new_filenames:
|
||||
self.trace_processor += [TraceProcessor(trace=(f)) for f in _new_filenames]
|
||||
self.trace_processor += [construct_trace_processor(f) for f in _new_filenames]
|
||||
|
||||
self.max_depth = kwargs.get("max_depth", None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user