TracingApi class Null safety

Constructors

TracingApi(Client _client)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
onBufferUsage Stream<BufferUsageEvent>
read-only
onDataCollected Stream<List<Map<String, dynamic>>>
Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.
read-only
onTracingComplete Stream<TracingCompleteEvent>
Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

end() Future<void>
Stop trace events collection.
getCategories() Future<List<String>>
Gets supported tracing categories. Returns: A list of supported tracing categories.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
recordClockSyncMarker(String syncId) Future<void>
Record a clock sync marker in the trace. syncId The ID of this clock sync marker
requestMemoryDump({bool? deterministic, MemoryDumpLevelOfDetail? levelOfDetail}) Future<RequestMemoryDumpResult>
Request a global memory dump. deterministic Enables more deterministic results by forcing garbage collection levelOfDetail Specifies level of details in memory dump. Defaults to "detailed".
start({String? categories, String? options, num? bufferUsageReportingInterval, String? transferMode, StreamFormat? streamFormat, StreamCompression? streamCompression, TraceConfig? traceConfig, String? perfettoConfig, TracingBackend? tracingBackend}) Future<void>
Start trace events collection. bufferUsageReportingInterval If set, the agent will issue bufferUsage events at this interval, specified in milliseconds transferMode Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to ReportEvents). streamFormat Trace data format to use. This only applies when using ReturnAsStream transfer mode (defaults to json). streamCompression Compression format to use. This only applies when using ReturnAsStream transfer mode (defaults to none) perfettoConfig Base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameters categories, options, traceConfig are ignored. tracingBackend Backend type (defaults to auto)
toString() String
A string representation of this object. [...]
inherited

Operators

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