TimelineSummary class
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
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, 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.
-
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.
-
writeSummaryToFile(
String traceName, { String destinationDirectory, bool pretty: false }) → Future< void> - Writes summaryJson to a file.
-
writeTimelineToFile(
String traceName, { String destinationDirectory, bool pretty: false }) → Future< void> - 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
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited