menu
puppeteer package
documentation
protocol/performance.dart
PerformanceApi class
PerformanceApi class
dark_mode
light_mode
PerformanceApi
class
Constructors
PerformanceApi
(
Client
_client
)
Properties
hashCode
→
int
The hash code for this object.
no setter
inherited
onMetrics
→
Stream
<
MetricsEvent
>
Current values of the metrics.
no setter
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
Methods
disable
(
)
→
Future
<
void
>
Disable collecting and reporting metrics.
enable
(
{
String
?
timeDomain
})
→
Future
<
void
>
Enable collecting and reporting metrics.
timeDomain
Time domain to use for collecting and reporting duration metrics.
getMetrics
(
)
→
Future
<
List
<
Metric
>
>
Retrieve current values of run-time metrics. Returns: Current values for run-time metrics.
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setTimeDomain
(
String
timeDomain
)
→
Future
<
void
>
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.
timeDomain
Time domain
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
puppeteer package
documentation
protocol/performance
PerformanceApi class
performance library