RenderStats class Debugging and profiling

A scene's rendering statistics: the last frame and a bounded history.

Read latest after a frame renders. Each frame is a fresh record, so a retained one never changes under the caller.

Constructors

RenderStats({int historyLength = 120})

Properties

activeFrame → RenderFrameStats?
The frame being rendered, or null between frames.
no setter
frameCount → int
Frames completed so far.
no setter
hashCode → int
The hash code for this object.
no setterinherited
history → List<RenderFrameStats>
Completed frames, oldest first, at most historyLength.
no setter
historyLength ↔ int
Frames to retain in history; zero keeps only latest.
getter/setter pair
latest → RenderFrameStats?
The most recently completed frame, or null before the first.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

beginFrame() → RenderFrameStats
Opens a frame. Called by the scene at the start of renderViews.
beginView({required int viewIndex, required int width, required int height, required bool offscreen}) → RenderViewStats?
Opens a view scope inside the active frame, or returns null when no frame is open (a render outside renderViews).
endFrame({required int pipelineCacheSize}) → void
Closes the frame opened by beginFrame.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

timelineEvents ↔ bool
Whether the render graph emits dart:developer timeline events per pass (visible in DevTools). On by default; the VM drops them in release builds.
getter/setter pair