protocol/performance
⚙️ This module was generated from the Chrome DevTools Protocol version 1.3
Performance Domain
This protocol domain has no description.
📖 View this domain on the DevTools Protocol API Docs
Types
This type is not part of the protocol spec, it has been generated dynamically
to represent the possible values of the enum property timeDomain
of enable
pub type EnableTimeDomain {
EnableTimeDomainTimeTicks
EnableTimeDomainThreadTicks
}
Constructors
-
EnableTimeDomainTimeTicks
-
EnableTimeDomainThreadTicks
This type is not part of the protocol spec, it has been generated dynamically
to represent the response to the command get_metrics
pub type GetMetricsResponse {
GetMetricsResponse(metrics: List(Metric))
}
Constructors
-
GetMetricsResponse(metrics: List(Metric))
Arguments
-
metrics
Current values for run-time metrics.
-
Functions
pub fn disable(callback__: fn(String, Option(a)) -> b) -> b
Disable collecting and reporting metrics.
pub fn enable(
callback__: fn(String, Option(Json)) -> a,
time_domain time_domain: Option(EnableTimeDomain),
) -> a
Enable collecting and reporting metrics.
Parameters:
time_domain
: Time domain to use for collecting and reporting duration metrics.
Returns:
pub fn get_metrics(
callback__: fn(String, Option(a)) ->
Result(Dynamic, RequestError),
) -> Result(GetMetricsResponse, RequestError)
Retrieve current values of run-time metrics.
metrics
: Current values for run-time metrics.