Performance Domain
Methods
- Performance.disable
- Performance.enable
- Performance.getMetrics
- Performance.setTimeDomain ExperimentalDeprecated
Events
Types
Methods
Performance.enable #
Enable collecting and reporting metrics.
Parameters
timeDomainOptional
stringTime 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 stringTime domain
Allowed values: timeTicks, threadTicks
Events
Types
Performance.Metric #
Run-time execution metric.
Type: object
Properties
name stringMetric name.
value numberMetric value.