Methods

Chrome DevTools

Performance.disable #

Disable collecting and reporting metrics.


Chrome DevTools

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


Chrome DevTools

Performance.getMetrics #

Retrieve current values of run-time metrics.

Return object

metrics
array[ Metric ]

Current values for run-time metrics.


Chrome DevTools

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

Chrome DevTools

Performance.metrics #

Current values of the metrics.

Parameters

metrics
array[ Metric ]

Current values of the metrics.

title
string

Timestamp title.

Types

Chrome DevTools

Performance.Metric #

Run-time execution metric.

Type: object

Properties

name
string

Metric name.

value
number

Metric value.