Enabling Profiling when not using YourKit
Even though Basher currently only supports YourKit when it comes to automatically controlling collection and snapshot generation, it is very easy to use Basher with any profiler available.
The only thing that is required is to figure out what commands are used by the profiler to enable their Java agent as part of the Java runtime.
For example, JProfiler uses the following command line to start their profiling agent:
-agentpath:{Path to jprofilerti library}
To configure Basher to use this command line parameters when it forks of the Basher runtime, simply specify add a 'argLine' element as part of the Maven Basher plugin configuration.
... <configuration> ... <!-- This configures Basher to enable the YourKit profiling agent <argLine>-agentpath:{Path to jprofilerti library}</argLine> ... <basherContexts> <basherContext implementation="net.sourceforge.basher.BasherContext"> ... </basherContext> </basherContexts> </configuration> ...