Commit 97eaf508 authored by Noric Couderc's avatar Noric Couderc
Browse files

Fix: Set tracing in the PapiTraceRunner

Sometimes we only trace the default counters, and then the tracer might
now know we want to trace. So we set the flag.
parent 40f7f67f
......@@ -103,6 +103,8 @@ class PapiTracerRunner(numRuns : Int, counters : List<PAPICounter>) : PapiRunner
.map { it.toPAPIConstant()!! }
when (counters.size) {
// Only default counters
0 -> Tracer.isTracing = true
1 -> Tracer.setCounters(counters.first())
2 -> Tracer.setCounters(counters[0], counters[1])
// Shouldn't happen with more elements
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment