Long name (short name) |
[argument types] |
Properties |
combineType(ct)
|
boolean
|
|
|
Causes all nodes of the same type (e.g. animCurveTA) to be combined in the
output display.
In query mode, this flag needs a value.
|
|
hierarchy(h)
|
boolean
|

|
|
Used to specify that a hierarchy of the dependency graph be affected,
thus "-reset -hierarchy -name ball" will reset the timers on the node
named "ball" and all of its descendents in the dependency graph.
In query mode, this flag needs a value.
|
|
maxDisplay(m)
|
int
|
|
|
Truncates the display so that only the most expenive "n" entries are
printed in the output display.
In query mode, this flag needs a value.
|
|
name(n)
|
string
|

|
|
Used in conjunction with -reset or -query to specify the name of the node
to reset or print timer values for. When querying a single timer, only a
single line of output is generated (i.e. the global timers and header
information is omitted). Note that one can force output to the script editor
window via the "-outputFile MEL" option to make it easy to grab the values
in a MEL script. Note: the -name and -type flag cannot be used together.
In query mode, this flag needs a value.
|
|
noHeader(nh)
|
boolean
|

|
|
Used in conjunction with -query to prevent any header or footer information
from being printed. All that will be output is the per-node timing data.
This option makes it easier to parse the output such as when you output the
query to a file on disk using the -outputFile option.
In query mode, this flag needs a value.
|
|
timerOff(off)
|
boolean
|
|
|
Turns off node timing. By default, the timers on all nodes are turned off,
but if specified with the -name or
-type flags, only the timers on specified nodes are turned off.
If the timers on all nodes become turned off, then global timing is also
turned off as well.
|
|
timerOn(on)
|
boolean
|
|
|
Turns on node timing. By default, the timers on all nodes are turned on,
but if specified with the -name or
-type flags, only the timers on specified nodes are turned on.
The global timers are also turned on by this command.
Note that turning on timing does NOT reset the timers to zero. Use the -reset
flag to reset the timers. The idea for NOT resetting the timers is to allow the
user to arbitrarily turn timing on and off and continue to add to the
existing timer values.
|
|
returnCode(rc)
|
string
|
|
|
Used in conjunction with the -query flag to specify the return code for the
command. The return code is the value returned by the dgtimer command after
it is invoked. The values that can be returned are as follows:
- "count" for the sum of the "Count" column. This is the total number of
times all the compute() methods have been invoked since the last timer reset.
- "nodecount" for the total number of nodes in Maya.
- "selftime" for the sum of the "Self time" column. This is the total time
spent in all the compute() methods for all nodes since the last timer reset.
This is also the default return code for the dgtimer command.
The returnCode feature is very handy for checking various aspects of Maya.
For example, if one wants an easy way to determine the total number of nodes,
without outputting a voluminous amount of other dgtimer data, try:
dgtimer -rc "nodecount" -threshold 100 -noHeader -query;
This returns the total number of nodes defined in Maya.
In query mode, this flag needs a value.
|
|
outputFile(o)
|
string
|
|
|
Used in conjunction with the -query flag to cause output to be directed to
an output file. By default, output is to stdout, but can be redirected e.g.
-outputFile "/home/virginia/timing/dgtrace.txt". This makes it handy to load
the data into an external application such as a spreadsheet program. To force
output to the script editor, use "-outputFile MEL" which makes it easy to
grab the values from within a MEL script.
In query mode, this flag needs a value.
|
|
reset(r)
|
boolean
|
|
|
Resets the node timers to zero. By default, the timers on all nodes as
well as the global timers are reset, but if specified with the -name or
-type flags, only the timers on specified nodes are reset.
|
|
threshold(th)
|
double
|
|
|
Truncates the display once the percentage of total execution time falls
below the threshold value.
In query mode, this flag needs a value.
|
|
type(t)
|
string
|

|
|
Used in conjunction with -reset or -query to specify the type of the node(s)
(e.g. animCurveTA) to reset or print timer values for.
When querying, use of the -combineType flag will cause all nodes of the
same type to be combined into one entry, and only one line of output is
generated (i.e. the global timers and header information is omitted).
Note that one can force output to the script editor
window via the "-outputFile MEL" option to make it easy to grab the values
in a MEL script. Note: the -name and -type flag cannot be used together.
In query mode, this flag needs a value.
|
|