12c836f95f
* Async memory copy tracing update - rocprofiler_buffer_tracing_memory_copy_record_t: thread_id and bytes - support ROCPROFILER_CALLBACK_TRACING_MEMORY_COPY - init_public_api_struct can fully construct * Testing for callback async copy tracing
23 lines
456 B
Python
23 lines
456 B
Python
#!/usr/bin/env python3
|
|
|
|
import json
|
|
import pytest
|
|
|
|
from rocprofiler_sdk.pytest_utils.dotdict import dotdict
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption(
|
|
"--input",
|
|
action="store",
|
|
default="async-copy-tracing-test.json",
|
|
help="Input JSON",
|
|
)
|
|
|
|
|
|
@pytest.fixture
|
|
def input_data(request):
|
|
filename = request.config.getoption("--input")
|
|
with open(filename, "r") as inp:
|
|
return dotdict(json.load(inp))
|