Jump to Content
  Previous Next
Content starts here

Setting Trace Filter

Using filters is a great way to minimize the amount of data that is shown in the Latency Traces table. The available trace filter is quite powerful with capabilities to filter on packages, classes, and methods. You can create your own filter profile.

The Latency Traces tab has a powerful filtering function that allows you to easily filter out packages, classes, and methods from the Latency Traces table. That way you will get a better overview of the exact methods you want to study. You can also decide if you want to show or hide the stack frames that matches the filter.

To add a package, class, or method
  1. Click the Trace filters button.
  2. The Trace filters window opens (Figure 19-2).

    Figure 19-2 Trace filters window


    Trace filters window

  3. Click either the Add package, Add class, or Add method button.
  4. The Add window opens (Figure 19-3 shows how to add a package).

    Figure 19-3 Add package window


    Add package window

  5. Type in the prefix of the package, class, or method name, for example com.bea if you are adding a package, to quickly find what you are looking for.
  6. Select the package, class, or method you want to use as a filter.
  7. The selected package now appears in the Trace filters window (Figure 19-4).

    Figure 19-4 Trace filter with package, class, and method


    Trace filter with package, class, and method

  8. Select one of the following options:
    • Hide filtered stack frames-you will not see the stack frames that matches the selected filter.
    • Show only traces that match filters-you will see only the traces containing stack frames that matches the selected filter.
    • Enable trace filters-turns the filter function on when selected.
  9. Click OK.
To remove a package, class, or method
  1. Click the Trace filters button.
  2. The Trace filters window opens (Figure 19-5).

    Figure 19-5 Trace filters window


    Trace filters window

  3. Select the package, class, or method you want to remove.
  4. Click Remove.
  5. Click OK.
Note: You can also deselect the Enable trace filters function to disable the filter.
  Previous Next