CpuSample class

See VmService.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().
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
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().
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
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.
getter/setter pair
tid ↔ int?
The thread ID representing the thread on which this sample was collected.
getter/setter pair
timestamp ↔ int?
The time this sample was collected in microseconds.
getter/setter pair
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.
getter/setter pair
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.
getter/setter pair
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.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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?