CachedCpuSamples class

An extension of CpuSamples which represents a set of cached samples, associated with a particular UserTag name.

Constructors

CachedCpuSamples({required String userTag, bool? truncated, required int? samplePeriod, required int? maxStackDepth, required int? sampleCount, required int? timeOriginMicros, required int? timeExtentMicros, required int? pid, required List<ProfileFunction>? functions, required List<CpuSample>? samples})

Properties

functions List<ProfileFunction>?
A list of functions seen in the relevant samples. These references can be looked up using the indices provided in a CpuSample stack to determine which function was on the stack.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>?
getter/setter pairinherited
maxStackDepth int?
The maximum possible stack depth for samples.
getter/setter pairinherited
pid int?
The process ID for the VM.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleCount int?
The number of samples returned.
getter/setter pairinherited
samplePeriod int?
The sampling rate for the profiler in microseconds.
getter/setter pairinherited
samples List<CpuSample>?
A list of samples collected in the range [timeOriginMicros, timeOriginMicros + timeExtentMicros]
getter/setter pairinherited
timeExtentMicros int?
The duration of time covered by the returned samples.
getter/setter pairinherited
timeOriginMicros int?
The start of the period of time in which the returned samples were collected.
getter/setter pairinherited
truncated bool?
Provided if the CPU sample cache has filled and older samples have been dropped.
final
type String
no setter
userTag String
The name of the UserTag associated with this cache of CpuSamples.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

parse(Map<String, dynamic>? json) CachedCpuSamples?