CockpitPerformanceHtml class final

Renders one or more CockpitPerformanceReport values as a self-contained offline HTML report.

The report keeps the canonical JSON payload in the document for exact inspection and uses a small, dependency-free viewer for the human-facing timeline. No network request, font, image, or external JavaScript bundle is required. Large frame and event collections are paged in the browser so a bounded capture remains useful without creating a giant DOM.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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 Methods

fullJson(Iterable<CockpitPerformanceReport> source, {String title = 'Cockpit performance', CockpitStartupReport? startup}) → String
Encodes the complete canonical report bundle as JSON.
render(CockpitPerformanceReport report, {String title = 'Cockpit performance', CockpitStartupReport? startup}) → String
Renders a single performance capture.
renderMany(Iterable<CockpitPerformanceReport> source, {String title = 'Cockpit performance', CockpitStartupReport? startup}) → String
Renders several captures into one report with a capture switcher.
timelineJson(CockpitPerformanceReport report) → String
Encodes the retained VM timeline as a Chrome trace-compatible JSON file.