TracingController class

Manages tracing of WebViews. In particular provides functionality for the app to enable/disable tracing of parts of code and to collect tracing data. This is useful for profiling performance issues, debugging and memory usage analysis in production and real life scenarios.

The resulting trace data is sent back as a byte sequence in json format. This file can be loaded in "chrome://tracing" for further analysis.

Officially Supported Platforms/Implementations:

Constructors

TracingController()
Manages tracing of WebViews. In particular provides functionality for the app to enable/disable tracing of parts of code and to collect tracing data. This is useful for profiling performance issues, debugging and memory usage analysis in production and real life scenarios.
TracingController.fromPlatform(PlatformTracingController platform)
Constructs a TracingController from a specific platform implementation.
TracingController.fromPlatformCreationParams(PlatformTracingControllerCreationParams params)
Constructs a TracingController from creation params for a specific platform.

Properties

hashCode int
The hash code for this object.
no setterinherited
platform PlatformTracingController
Implementation of PlatformTracingController for the current platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isTracing() Future<bool>
Returns whether the WebView framework is tracing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start({required TracingSettings settings}) Future<void>
Starts tracing all WebViews. Depending on the trace mode in trace config specifies how the trace events are recorded. For tracing modes TracingMode.RECORD_UNTIL_FULL and TracingMode.RECORD_CONTINUOUSLY the events are recorded using an internal buffer and flushed to the outputStream when stop is called.
stop({String? filePath}) Future<bool>
Stops tracing and flushes tracing data to the specified output stream. The data is sent to the specified output stream in json format typically in chunks.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

instance() TracingController
Gets the TracingController shared instance.