Skip to content

Commit 61a3431

Browse files
committed
Add pftrace to tests
1 parent 846982b commit 61a3431

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_examples.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from preciceprofiling.analyze import analyzeCommand
88
from preciceprofiling.export import exportCommand
99
from preciceprofiling.trace import traceCommand
10+
from preciceprofiling.pftrace import pftraceCommand
1011

1112

1213
def get_cases():
@@ -22,6 +23,7 @@ def run_case(case: pathlib.Path, cwd: pathlib.Path, useDir: bool):
2223
profiling = cwd / "profiling.db"
2324
export = cwd / "profiling.csv"
2425
trace = cwd / "trace.json"
26+
pftrace = cwd / "profiling.pftrace"
2527
unit = "us"
2628

2729
mergeInputs = (
@@ -42,6 +44,10 @@ def run_case(case: pathlib.Path, cwd: pathlib.Path, useDir: bool):
4244
assert traceCommand(profiling, trace, unit, None, False) == 0
4345
assert trace.exists()
4446

47+
print("--- Perfetto trace")
48+
assert pftraceCommand(profiling, pftrace) == 0
49+
assert pftrace.exists()
50+
4551
participants = (
4652
pl.read_csv(cwd / "profiling.csv").get_column("participant").unique().to_list()
4753
)

0 commit comments

Comments
 (0)