Tracing class
You can use tracing.start
and tracing.stop
to create a trace file which
can be opened in Chrome DevTools or timeline viewer.
await page.tracing.start();
await page.goto('https://www.google.com');
await page.tracing.stop(File('trace.json').openWrite());
Constructors
- Tracing(DevTools _devTools)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
{bool? screenshots, List< String> ? categories}) → Future<void> - Only one trace can be active at a time per browser.
-
stop(
StringSink output) → Future< void> - Promise which resolves to buffer with trace data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited