Filters Module

Scripting modules that adds filtering capabilities to Trace Compass scripting.

With this module, a script can create a complex query from the trace data and then call the .applyGlobalFilter(String) method to apply the filter on all views of Trace Compass.

This module also contains helper methods that transform a simple query, but that may not be easily understandable by Trace Compass, into a complex one that will return a maximum of results.

This requires the Trace Compass Filters (Incubation) feature to be installed.

Method Overview

Method Description
applyGlobalFilter() Apply a global filter to the currently active trace
clearGlobalFilters() Remove all global filters
filterByThreadName() Apply a global filter to all Trace Compass views on the threads whose name contains the name in parameter.

Methods

applyGlobalFilter

void applyGlobalFilter(String regex)

Apply a global filter to the currently active trace

regex
The filter to apply

clearGlobalFilters

void clearGlobalFilters()

Remove all global filters

filterByThreadName

void filterByThreadName(String name)

Apply a global filter to all Trace Compass views on the threads whose name contains the name in parameter.

name
The name of the thread, as can be seen in the Control Flow View.