Performance Domain
Methods
- Performance.disable
- Performance.enable
- Performance.getMetrics
- Performance.setTimeDomain ExperimentalDeprecated
Events
Types
Methods
Performance.enable #
Enable collecting and reporting metrics.
Parameters
timeDomain
Optional
string
Time domain to use for collecting and reporting duration metrics.
Allowed values: timeTicks
, threadTicks
Performance.getMetrics #
Retrieve current values of run-time metrics.
Return object
metrics
array[ Metric ]
Current values for run-time metrics.
Performance.setTimeDomain ExperimentalDeprecated#
Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.
Parameters
timeDomain
string
Time domain
Allowed values: timeTicks
, threadTicks
Events
Types
Performance.Metric #
Run-time execution metric.
Type: object
Properties
name
string
Metric name.
value
number
Metric value.