If true, start capturing summary performance stats.
capture_platform
bool
If true, start recording a platform profile.
only_on_ticks_per_frame
int
If non-zero, only captures summary data on frames that ticked the specified number of times.
stream_summary
bool
If true, start streaming summary performance stats to a CSV file.
summary_path
string
Optional path of the CSV file to write. If no path provided, but a package is provided, writes to '/out/perf.PLATFORM.BUILD.LEVEL.csv'. Otherwise writes to '/out/perf.PLATFORM.BUILD.csv'
package
var
Reference to a package file used for naming. Or string name.
Optional path of the trace to write. Paths ending in '.json.gz' will write gzipped JSON. All other paths will write uncompressed JSON. If no path provided, but a package is provided, writes to '/out/trace.PLATFORM.BUILD.LEVEL.json.gz'. Otherwise writes to '/out/trace.PLATFORM.BUILD.json.gz'
package
var
Reference to a package file used for naming. Or string name.
Start timing a section of script in the performance tracing system. Important: you must make a balanced number of push and pop operations. Do not attempt to hold a duration open across a frame.
Parameter
Type
Meaning
name
string
Name of the duration.
category
string
Category of the duration. If none provided, assumed to be 'sim'.