Skip to main content

All Questions

Tagged with
1 vote
1 answer
2k views

AsyncProfiler - Unable to load profiler in JMH benchmark runner

I'm using JMH to benchmark JUnit tests. I want to start using async-profiler, to profile the benchmarks and get more information regarding CPU usage. My benchmark runner: import org.openjdk.jmh....
Dimidrie's user avatar
0 votes
1 answer
622 views

Exclude @Setup methods from profiling in JMH

I am using JMH to benchmark some code on the JVM, and I have written a method annotated as a @Setup method which takes quite a long time to run. Of course this method is not included in the benchmarks,...
Robin Green's user avatar
  • 32.8k
2 votes
1 answer
2k views

Accessing JMH state

I'm setting up the JMH benchmarks for my application and I'm wondering is there any difference between passing JMH state via benchmark's and accessing it from benchmark body? In other words @...
Kristoff's user avatar
  • 326
4 votes
1 answer
2k views

Error while running xperfasm JMH profiler on windows: xperf: error: NT Kernel Logger: Invalid flags. (0x3ec)

I'm adding microbenchmark to my JAVA application thanks to JMH. I'm running the benchmarks on windows 10: The stack profiler works well: java -jar target/benchmarks.jar -prof stack Secondary ...
Pleymor's user avatar
  • 2,861
0 votes
1 answer
795 views

JMH giving <not counted> values when profiling with perf

I would like to run benchmarks in Java and get hardware counters. I wanted to use JMH to do so, since it seems like a mature tool. It also has options to hook profiles (for instance the perf tool, ...
Vetii's user avatar
  • 133
6 votes
1 answer
4k views

How to see call tree profiling in JMH?

I want to profile JMH tests and look at a call tree like in the VisualVM. But when I use the StackProfiler, it gives me native methods like that, which totally useless in my case. ....[Thread state ...
Александр Меньшиков's user avatar
1 vote
1 answer
831 views

How to properly and simply profile a function in scala?

I am trying to reverse a string containing unicode characters in Scala. I want to find the fastest way to do it. So far I have this code: import scala.runtime.RichChar def reverseInPlace(s: String):...
fabmilo's user avatar
  • 48.1k