Extracts statistics from a Timeline.

Constructors

TimelineSummary.summarize(Timeline _timeline)

Creates a timeline summary given a full timeline object.

Properties

summaryJson Map<String, dynamic>

Encodes this summary as JSON.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

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 GPU 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 GPU and therefore are in the danger of missing frames.

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.

writeSummaryToFile(String traceName, { String destinationDirectory, bool pretty: false }) Future<Null>

Writes summaryJson to a file.

writeTimelineToFile(String traceName, { String destinationDirectory, bool pretty: false }) Future<Null>

Writes all of the recorded timeline data to a file.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited