Performance
No symbols match your filter.
Commands
Performance.disable
Disable collecting and reporting metrics.
Performance.enable
Enable collecting and reporting metrics.
Parameters
| Name | Type | Description |
|---|---|---|
timeDomain
(optional) |
string |
Time domain to use for collecting and reporting duration metrics. |
Performance.setTimeDomain
Experimental Deprecated 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
| Name | Type | Description |
|---|---|---|
timeDomain
|
string |
Time domain |
Performance.getMetrics
Retrieve current values of run-time metrics.
Return Object
| Name | Type | Description |
|---|---|---|
metrics
|
array<Metric> |
Current values for run-time metrics. |
Events
Performance.metrics
Current values of the metrics.
Parameters
| Name | Type | Description |
|---|---|---|
metrics
|
array<Metric> |
Current values of the metrics. |
title
|
string |
Timestamp title. |
Types
Metric
(object)
Run-time execution metric.
Properties
| Name | Type | Description |
|---|---|---|
name
|
string |
Metric name. |
value
|
number |
Metric value. |