Creating and editing probes

You can create a probe as a resource in any Java project. You can also create a Java project that only contains probes. Probes can be saved in any Java project, in any folder that is designated as a source folder.

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 probe sample as a model. If you intend to use multiple probes simultaneously, you can combine them into a single file.
    Note: All probes must have the following first line: <?xml version="1.0" encoding="ASCII"?>
  3. Save the probe in a Java source folder using a filename with the extension .probe.

Next topic: Compiling probes

Related concepts
Method probes versus callsite probes

Related tasks
Compiling probes
Applying probes
Running a project with probes
Modifying probes
Removing probe instrumentation
Using multiple probes simultaneously

Related reference
The Probekit object

Related information
A basic sample probe

Copyright IBM Corporation and others 2000, 2003.