Closed kavehshahedi closed 2 weeks ago
Unfortunately, I would not know. Byte Buddy creates agents without regards to tools. Maybe you could hear on the JMH mailing list how this can be solved for Java agents in general?
As for the warmup: maybe you can skip instrumentation using a flag? But this would defeat the purpose of the warmup. As with forking: Maybe it would be better to transform the jar statically using a build tool? Byte Buddy offers support for this, too.
Hello,
I have built a Java agent that tries to instrument some methods in the main program by running the JMH benchmarks. However, the nature of the JMH structure has generated two issues for having a precise instrumentation information;
This is the command I use for running the benchmarks:
P.S.: The instrumentation agent is just a simple byte-buddy transformation tool. Nothing complex or sophisticated for transforming.
Thanks