How to profile wall clock of tests run in maven surefire

I am trying to profile a suite of tests that are run from maven surefire . I found related questions like this and not looking for anything.

Can someone recommend a profiler that will allow me to measure the wall clock duration of test suite method calls (i.e. I'm not trying to hook up the profiler to an application already running)?

+3


source to share


1 answer


This answer helped me. I added the following to pom.xml

:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
        <argLine>-agentpath:/home/jshaw/yjp-12.0.2/bin/linux-x86-64/libyjpagent.so=tracing,onexit=snapshot,disablej2ee</argLine>
    </configuration>
</plugin>

      



Then you can download snapshots from YourKit profiler after maven is finished.

+1


source







All Articles