Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Noric Couderc
JBrainy
Commits
6a9b1c4b
Commit
6a9b1c4b
authored
Nov 04, 2021
by
Noric Couderc
Browse files
Fixed initialization of Tracer from sm-java
addCounter should do things the smart way, so we use that.
parent
b8c18fa1
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/src/test/kotlin/TracingCollectionRunnerTest.kt
View file @
6a9b1c4b
import
com.google.common.graph.*
import
com.google.common.graph.GraphBuilder
import
com.google.common.graph.MutableGraph
import
org.junit.jupiter.api.*
import
org.junit.jupiter.params.ParameterizedTest
import
org.junit.jupiter.params.provider.ValueSource
import
org.openjdk.jmh.infra.Blackhole
import
papi.Constants
import
papi.EventSet
import
papi.Papi
import
se.lth.cs.CounterSpecification
import
se.lth.cs.CounterSpecification.Companion.fromFile
import
se.lth.cs.bcgen.BCBenchmarkPackage
import
se.lth.cs.papicounters.PAPICounter
import
se.lth.cs.papicounters.PapiBenchmarkAnalyzer
...
...
@@ -30,12 +28,11 @@ class TracingCollectionRunnerTest {
@BeforeAll
()
@JvmStatic
fun
init
Papi
()
{
fun
init
Tracer
()
{
System
.
out
.
println
(
"Initialize PAPI"
)
Tracer
.
JPAPI
=
true
val
counters
=
listOf
<
Int
>(
Constants
.
PAPI_TOT_CYC
,
Constants
.
PAPI_TOT_INS
).
toIntArray
()
Tracer
.
JPAPI_COUNTERS
=
counters
Papi
.
init
()
Tracer
.
addCounter
(
Constants
.
PAPI_TOT_CYC
)
Tracer
.
addCounter
(
Constants
.
PAPI_TOT_INS
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment