TimelineSummary class Null safety

Extracts statistics from a Timeline.

Constructors

TimelineSummary.summarize(Timeline _timeline)
Creates a timeline summary given a full timeline object.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
summaryJson Map<String, dynamic>
Encodes this summary as JSON. [...]
read-only

Methods

computeAverageFrameBuildTimeMillis() double
Average amount of time spent per frame in the framework building widgets, updating layout, painting and compositing. [...]
computeAverageFrameRasterizerTimeMillis() double
Average amount of time spent per frame in the engine rasterizer. [...]
computeMissedFrameBuildBudgetCount([Duration frameBuildBudget = kBuildBudget]) int
The number of frames that missed the kBuildBudget and therefore are in the danger of missing frames.
computeMissedFrameRasterizerBudgetCount([Duration frameBuildBudget = kBuildBudget]) int
The number of frames that missed the kBuildBudget on the raster thread and therefore are in the danger of missing frames.
computePercentileFrameBuildTimeMillis(double p) double
The p-th percentile frame rasterization time in milliseconds. [...]
computePercentileFrameRasterizerTimeMillis(double p) double
The p-th percentile frame rasterization time in milliseconds. [...]
computeWorstFrameBuildTimeMillis() double
The longest frame build time in milliseconds. [...]
computeWorstFrameRasterizerTimeMillis() double
The longest frame rasterization time in milliseconds. [...]
countFrames() int
The total number of frames recorded in the timeline.
countRasterizations() int
The total number of rasterizer cycles recorded in the timeline.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
writeSummaryToFile(String traceName, {String? destinationDirectory, bool pretty = false}) Future<void>
Writes summaryJson to a file.
@Deprecated('Use TimelineSummary.writeTimelineToFile. ' 'This feature was deprecated after v2.1.0-13.0.pre.')
writeTimelineToFile(String traceName, {String? destinationDirectory, bool pretty = false, bool includeSummary = true}) Future<void>
Writes all of the recorded timeline data to a file. [...]

Operators

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