Commit 51054de2 authored by Noric Couderc's avatar Noric Couderc
Browse files

Addded Mockup class for PapiTracerRunner

Useful for testing
parent 8ed8f1b8
......@@ -206,4 +206,17 @@ open class PapiTracerRunner() : PapiRunner() {
return result
}
}
\ No newline at end of file
}
class MockupPapiTracerRunner() : PapiTracerRunner() {
override fun runIteration(syntheticBenchmark: BCBenchmarkPackage<*>): List<TraceRecord> {
val counter = PAPICounter("PAPI_TOT_CYC")
return syntheticBenchmark.trace.map { method ->
val methodOtherFormat = methodNameTable2.inverseBidiMap()[method]
TraceRecord("alloc1", counter.toHexa(), 1000,
syntheticBenchmark.dataStructureName.removeSuffix("Tracer"),
methodOtherFormat ?: method
)
}
}
}
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