CpuSample class Null safety

See getCpuSamples and CpuSamples.

Constructors

CpuSample({int? tid, int? timestamp, List<int>? stack, String? vmTag, String? userTag, bool? truncated, int? identityHashCode, int? classId})

Properties

classId int?
Matches the index of a class in HeapSnapshot.classes. Provided for CpuSample instances returned from a getAllocationTraces().
optional">@optionalread / write
hashCode int
The hash code for this object.
read-onlyinherited
identityHashCode int?
The identityHashCode assigned to the allocated object. This hash code is the same as the hash code provided in HeapSnapshot. Provided for CpuSample instances returned from a getAllocationTraces().
optional">@optionalread / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stack List<int>?
The call stack at the time this sample was collected. The stack is to be interpreted as top to bottom. Each element in this array is a key into the functions array in CpuSamples.
read / write
tid int?
The thread ID representing the thread on which this sample was collected.
read / write
timestamp int?
The time this sample was collected in microseconds.
read / write
truncated bool?
Provided and set to true if the sample's stack was truncated. This can happen if the stack is deeper than the stackDepth in the CpuSamples response.
optional">@optionalread / write
userTag String?
The name of the User tag set when this sample was collected. Omitted if no User tag was set when this sample was collected.
optional">@optionalread / write
vmTag String?
The name of VM tag set when this sample was collected. Omitted if the VM tag for the sample is not considered valid.
optional">@optionalread / write

Methods

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

Operators

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

Static Methods

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