Performance Domain
Methods
Events
Types
Methods
Performance.disable #
Disable collecting and reporting metrics.
Performance.enable #
Enable collecting and reporting metrics.
parameters
- timeDomain
-
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.