getAllocationTraces method Null safety
The getAllocationTraces
RPC allows for the retrieval of allocation
traces for objects of a specific set of types (see
setTraceClassAllocation). Only samples collected in the time range
[timeOriginMicros, timeOriginMicros + timeExtentMicros]
will be
reported.
If classId
is provided, only traces for allocations with the matching
classId
will be reported.
If the profiler is disabled, an RPC error response will be returned.
If isolateId refers to an isolate which has exited, then the Collected Sentinel is returned.
See CpuSamples
.
Implementation
Future<CpuSamples> getAllocationTraces(
String isolateId, {
int? timeOriginMicros,
int? timeExtentMicros,
String? classId,
});