DevToolsTracing class final Tracing

A tracing delegate that integrates CBL Dart with the Dart DevTools.

This tracing delegate records Timeline events, which can be viewed in Dart DevTools Performance Page.

Inheritance

Constructors

DevToolsTracing({OperationFilter operationFilter = defaultOperationFilter, OperationToStringResolver operationNameResolver = defaultOperationNameResolver, OperationDetailsResolver operationDetailsResolver = defaultOperationDetailsResolver})
A tracing delegate that integrates CBL Dart with the dart developer tools.

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

captureTracingContext() → Object?
Returns the current tracing context and is called just before a message is sent from an user to a worker isolate.
inherited
close() → FutureOr<void>
Called after this delegate is no longer used as the current delegate.
inherited
createWorkerDelegate() → TracingDelegate
Creates a new TracingDelegate to be used for a worker isolate, which is about to be created by the current isolate.
override
initialize() → FutureOr<void>
Called before this delegate is used as the current delegate.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onTraceData(Object? data) → void
Callback for receiving trace data from delegates in worker isolates.
inherited
restoreTracingContext(Object? context, void restore()) → void
Restores the tracing context and is called just after a message from a user isolate is received by a worker isolate.
inherited
sendTraceData(Object? data) → void
Allows this delegate to send arbitrary data to the delegate it was created by.
inherited
toString() → String
A string representation of this object.
inherited
traceAsyncOperation<T>(TracedOperation operation, Future<T> execute()) → Future<T>
Called when an asynchronous operation trace point is reached.
override
traceSyncOperation<T>(TracedOperation operation, T execute()) → T
Called when a synchronous operation trace point is reached.
override

Operators

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

Static Methods

defaultOperationDetailsResolver(TracedOperation operation) → Map<String, Object?>?
The default function to resolve details of a TracedOperation for its timeline events.
defaultOperationFilter(TracedOperation operation) → bool
The default filter that is used to determine whether an operation should be recorded to the timeline.
defaultOperationNameResolver(TracedOperation operation) → String
The default function to resolve the name of a TracedOperation for its timeline events.