This is a step-by-step approach on how you might instrument a test case to capture performance data.
timer.xml file,
organized by test case (scenario), and denoted by
a unique test case number.
This is a one time activity.
snapshot
method.
plugin.xml file to include the org.eclipse.perfmsr.core
plug-in.
etools_perf_ctrl
environment variable to configure and activate the performance instrumentation.
For example:
java -Detools_perf_ctrl="testd=51" rest-of-your-stuff
If you don't want to specify the environment variable when you run your test, you can pass in the configuration information though an API instead. Here is an example of how you might do that.