summaryrefslogtreecommitdiff
path: root/lib/harness.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-05 16:10:49 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-05 16:10:49 +0100
commitcc31a043f21c16986d7b33eabb05cfc34d6e0390 (patch)
tree024529d92341a8b3096095e3043dc204082f17db /lib/harness.py
parentcf7e68c388bd1ef0e9e2ee64b5193e09be16b6da (diff)
working benchmark generation
Diffstat (limited to 'lib/harness.py')
-rw-r--r--lib/harness.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/harness.py b/lib/harness.py
index 3f8d93c..67a9f7d 100644
--- a/lib/harness.py
+++ b/lib/harness.py
@@ -22,7 +22,11 @@ class OnboardTimerHarness:
return ret
def start_benchmark(self):
- return 'ptalog.startBenchmark(0);\n'
+ ret = 'counter.start();\n'
+ ret += 'counter.stop();\n'
+ ret += 'ptalog.passNop(counter);\n'
+ ret += 'ptalog.startBenchmark(0);\n'
+ return ret
def start_run(self):
return 'ptalog.reset();\n'