Previous Topic

Next Topic

Book Contents

Book Index

Exclude Method Filters

mBProfiler introduces filters for excluding specific methods from the call trees. Such methods are always selected as hot spots and can potentially disturb the results – for example in CPU profiling when Use real CPU time is off. Usually, such common methods are the Object's wait methods, Thread.sleep(), etc.

Define a set of exclude filters in the Filters group of mBProfiler preferences.

To create an exclude filter:

  1. Click the Add button.
  2. In the shown New Filter dialog, click the ... button next to Class Name field to select a class available in the workspace. Upon specifying the class name, a default value of * is set for method name meaning that all class methods will be hidden from the results.

  3. In the Method Name field if needed specify a concrete class method or leave the default value *. Use the ... button next to the field to conveniently select the method.

  4. Select the Mem or CPU box in front of each filter to indicate the type of profiling session it will be applied to.

    To have the filters applied to cumulated data, select the Use method filters for memory option to apply them to memory profiling and the Use method filters for CPU one – to CPU profiling.

    To save the filters and exit the Preferences dialog, click OK. To apply the changes and continue using the dialog, use Apply.