Creating and editing probes

Probe source files are xml files that you can create and edit in Eclipse, and save in Java projects.

You can create a probe as a resource in a Java project, or you can create a Java project that only contains probe source files.

Note: Probe source files must appear in the top level of a JDT (Java Developer Toolkit) source folder, they cannot be in a subfolder. To see the list of JDT source folders, right-click the project and select Properties > Java Build Path > Source. Your probe source file must appear in one of the folders in the list.

To create or edit a probe:

  1. If you are creating a new probe, select File > New > Other > Simple > File. If you are editing an existing probe, double-click the probe.
  2. Use the text editor to create or edit a probe in xml format, using the sample probe as a model. If you intend to use multiple probes simultaneously, you can combine them into a single file.
  3. Save the probe in a source folder of a Java project using a filename with the extension .probe.

Parent topic: Creating and using probes

Next topic: Compiling probes

Related concepts
Method probes versus callsite probes

Related reference
The Probekit object

Related information
A basic sample probe

Copyright IBM Corporation and others 2000, 2004.