Skip to content

Commit 535a7d3

Browse files
committed
Add CInstrumenter to benchmark
1 parent 47d2c4a commit 535a7d3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

benchmark/benchmark.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
@author: gocht
55
'''
6+
import sys
67
import benchmark_helper
78
import pickle
89

@@ -16,6 +17,9 @@
1617

1718
for test in tests:
1819
results[test] = {"profile": {}, "trace": {}, "dummy": {}, "None": {}}
20+
if sys.version_info.major >= 3:
21+
results.update({"cProfile": {}, "cTrace": {}})
22+
1923
for instrumenter in results[test]:
2024
if instrumenter == "None":
2125
enable_scorep = False

0 commit comments

Comments
 (0)