Go to: Synopsis. Return value. Keywords. Flags. MEL examples.
profilerTool [-categoryView] [-cpuView] [-destroy] [-exists] [-findNext] [-findPrevious] [-frameAll] [-frameSelected] [-isolateSegment int] [-make] [-matchWholeWord boolean] [-searchEvent string] [-segmentCount] [-showAllEvent boolean] [-showSelectedEvents boolean] [-showSelectedEventsRepetition boolean] [-threadView] [-unisolateSegment]
profilerTool is NOT undoable, queryable, and editable.
This script is intended to be used by the profilerPanel to interact with the profiler tool's view (draw region). It can be used to control some behaviors about the profiler Tool.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-categoryView(-cat)
|
|
|||
|
||||
-cpuView(-cpu)
|
|
|||
|
||||
-destroy(-dtr)
|
|
|||
|
||||
-exists(-ex)
|
|
|||
|
||||
-findNext(-fn)
|
|
|||
|
||||
-findPrevious(-fp)
|
|
|||
|
||||
-frameAll(-fa)
|
|
|||
|
||||
-frameSelected(-fs)
|
|
|||
|
||||
-isolateSegment(-is)
|
int
|
|||
|
||||
-make(-mk)
|
|
|||
|
||||
-matchWholeWord(-mww)
|
boolean
|
|||
|
||||
-searchEvent(-se)
|
string
|
|||
|
||||
-segmentCount(-sc)
|
|
|||
|
||||
-showAllEvent(-sa)
|
boolean
|
|||
|
||||
-showSelectedEvents(-ss)
|
boolean
|
|||
|
||||
-showSelectedEventsRepetition(-ssr)
|
boolean
|
|||
|
||||
-threadView(-thd)
|
|
|||
|
||||
-unisolateSegment(-uis)
|
|
|||
|
Flag can appear in Create mode of command | Flag can appear in Edit mode of command |
Flag can appear in Query mode of command | Flag can be used more than once in a command. |
//First record/load a profile //Frame the tool's view on all recorded events. profilerTool -e -frameAll; // //Frame selected events profilerTool -e -frameSelected; // //Change to cpu view profilerTool -e -cpuView; // //Show only selected events profilerTool -e -showSelectedEvents true; // //Show all events profilerTool -e -showAllEvent true; // //Hide all events which has same comment as selected events profilerTool -e -showSelectedEventsRepetition false; // //Find all events whose name contains "abc" profilerTool -q -searchEvent abc; // //Find the first event, whose name exactly match with "def", next to current selected event profilerTool -e -matchWholeWord true; profilerTool -q -searchEvent def -findNext; // //Query segment count in buffer profilerTool -q -segmentCount; // //Isolate the first segment profilerTool -e -isolateSegment 0; // //Unisolate segment profilerTool -e -unisolateSegment;