Applying compiled probes statically from the command line

After compiling a probe, you can apply it statically from the command line using the command java ProbeInstrumenter.

Prerequisite: Compiling probes to be applied statically from the command line

To apply a probe from the command line:

  1. Make sure that your classpath environment variable contains the full path and filename of the probekit.jar file. The probekit.jar file is located in the org.eclipse.hyades.probekit subfolder of your Eclipse plugins folder.
  2. Make sure that your path environment variable contains the full path to the subfolder of org.eclipse.hyades.probekit that is appropriate for your platform:
    • Windows platform icon os\win32\x86 for Microsoft® Windows®
    • Solaris platform icon os/solaris/sparc for Solaris
    • Linux platform icon os/linux/x86 for Linux™
  3. On the command line, enter the command java ProbeInstrumenter, followed by the name of the probescript file for the probe that you want to use, and a list of items to instrument. The list items can be class files, jar files, or folders. For example:
    java ProbeInstrumenter myprobe.probescript c:\myproject_path\myprogram.jar
ProbeInstrumenter instruments the class files that are included in your list and that match the probe's target specifications.
Tip: You can apply multiple probes to a project. Compile each probe separately. Then concatenate the resulting probescript files into a single file, and pass the name of the concatenated file to ProbeInstrumenter when you apply the probe. Alternatively, you can apply the probes to the project one at a time.
You can now run your project and collect data. For instructions, read Running a project with statically applied probes.
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.