Class FiltersScriptingModule
java.lang.Object
org.eclipse.tracecompass.incubator.scripting.core.filters.FiltersScriptingModule
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.
- Author:
- Geneviève Bastien
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyGlobalFilter
(String regex) Apply a global filter to the currently active tracevoid
Remove all global filtersvoid
filterByThreadName
(String name) Apply a global filter to all Trace Compass views on the threads whose name contains the name in parameter.
-
Constructor Details
-
FiltersScriptingModule
public FiltersScriptingModule()
-
-
Method Details
-
applyGlobalFilter
Apply a global filter to the currently active trace- Parameters:
regex
- The filter to apply
-
filterByThreadName
Apply a global filter to all Trace Compass views on the threads whose name contains the name in parameter.- Parameters:
name
- The name of the thread, as can be seen in the Control Flow View.
-
clearGlobalFilters
public void clearGlobalFilters()Remove all global filters
-