Outputs statistics about a Gaffer script, including the version of Gaffer that created it, the values of all setting and variables and the types of node in use. May also be used to perform performance analysis of image and scene processing nodes within the script, using a performance monitor to generate advanced statistics.
To output basic information about a script :
gaffer stats fileName.gfr
To run a scene processing node using the performance monitor :
gaffer stats fileName.gfr -scene NameOfNode -performanceMonitor
To run an image processing node using the performance monitor :
gaffer stats fileName.gfr -image NameOfNode -performanceMonitor
Prints names and descriptions of each parameter rather than running the application.
The maximum number of threads used for computation. The default value of zero causes the number of threads to be chosen automatically based on the available hardware.
If this is specified, then the application is run using the cProfile profiling module, and the results saved to the file for later examination.
The script to examine.
A python script to run after loading
script. This can be used to modify the node graph before stats are gathered. The root ScriptNode is accessible via a variable named
Output the results to this file on disk rather than stdout
The frames to evaluate statistics for. The default value uses the current frame as stored in the script.
The Context used during stats evaluation. Note that the frames parameter will be used to vary the Context frame entry. Arguments are specified in the same format as used by the
Turns on a summary of nodes in the script.
Reports serialisation time for the script.
The name of a SceneNode or ScenePlug to examine. A Render node or TaskPlug on a Render node may also be passed, to perform profiling of the render output process without performing the actual image generation.
The path to a location in the scene. If this is specified then that single location will be generated profiled, otherwise the entire scene will generated.
The names of scene sets to be examined.
The name of an ImageNode or ImagePlug to examine.
Prepopulates the cache by evaluating the scene or image once prior to measuring the second evaluation.
The name of a TaskNode or TaskPlug to dispatch.
Turns on a performance monitor to provide additional statistics about the operation of the node graph.
The maximum number of plugs to list for each metric captured by the performance monitor.
Turns on a Context monitor to provide additional statistics about the operation of the node graph.
The name of a node or plug to provide a root for the Context monitor. Statistics will only be captured for this root downwards.
Filename used to save a copy of the script containing annotations from the performance and Context monitors.
Enables VTune instrumentation. When enabled, the VTune ‘Tasks & Frames’ view will be broken down by node type.
Checks for Contexts containing “leaked” variables that may affect performance. Any problems are reported as warnings to stderr.
Adds an IECore.Canceller to the Context used for computations. This can be used to measure any overhead generated by nodes checking for cancellation.
The memory limit for the ValuePlug cache, measured in Mb. If this is not specified, the default limit will be used, or a limit specified by an application startup file.
The size limit for the per-thread hash cache. If this is not specified, the default limit will be used, or a limit specified by an application startup file.