CpuSamples class Null safety

See getCpuSamples and CpuSample.



CpuSamples({required int? samplePeriod, required int? maxStackDepth, required int? sampleCount, required int? timeSpan, required int? timeOriginMicros, required int? timeExtentMicros, required int? pid, required List<ProfileFunction>? functions, required List<CpuSample>? samples})


functions List<ProfileFunction>?
A list of functions seen in the relevant samples. These references can be looked up using the indicies provided in a CpuSample stack to determine which function was on the stack.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
json Map<String, dynamic>?
read / write, inherited
maxStackDepth int?
The maximum possible stack depth for samples.
read / write
pid int?
The process ID for the VM.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sampleCount int?
The number of samples returned.
read / write
samplePeriod int?
The sampling rate for the profiler in microseconds.
read / write
samples List<CpuSample>?
A list of samples collected in the range [timeOriginMicros, timeOriginMicros + timeExtentMicros]
read / write
timeExtentMicros int?
The duration of time covered by the returned samples.
read / write
timeOriginMicros int?
The start of the period of time in which the returned samples were collected.
read / write
timeSpan int?
The timespan the set of returned samples covers, in microseconds (deprecated). [...]
read / write
type String
read-only, override


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


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

Static Methods

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