How do I add methods to the instrumentation configuration?

You can add and remove methods to and from the instrumentation configuration using the sampling method tree, the thread dump, or the Configuration page. You can also add and remove methods from the instrumented method tree.

back to Oracle WebCenter Portal Performance Pack Online Help

You don’t have to stop and start WebCenter Portal Performance Pack or the target JVM when you add or remove methods. You just perform the task.

To add or remove methods using the sampling method tree:

  1. Go to the Configuration page and verify instrumentation and sampling have been enabled.

    Note:

    Once you’ve enabled the instrumentation and sampling, you must access the webapp to ensure that data is loaded in the sampling tree.
  2. Go to the Sampling Method Tree section to see the key methods that may have been missed in the configuration.

  3. Find the method you want to instrument and select Watch. To remove methods from being instrumented, just unselect Watch from the instrumentation and/or sampling method trees.

    A confirmation dialog is displayed for both actions.

To add new methods to the configuration

  1. Go to the Configuration page and verify instrumentation and sampling have been enabled.

  2. Go to the Instrumented Method section and simply add your method (package.class.name) and click Add Method.

  3. Repeat the previous step until you’ve added all the methods you’re interested in from your new code.

  4. Save the configuration.

  5. Sign in to Oracle WebCenter and perform functions using your new code.

  6. Return toWebCenter Portal Performance Pack and monitor the performance for your new methods using the Events list or Method Statistics.

    Note:

    Methods displayed in “Grey” colored Italics indicate classes that are yet to be loaded by the JVM. You should wait for the class to be invoked by the program and start watching it once it is loaded. Methods displayed in “Blue” indicate changes that are not yet saved to the configuration file.

You can remove methods from the configuration by simply unselecting Watch for selected methods and then saving the configuration.