Skip to main content

Module schema

Module schema 

Source
Expand description

Speedscope JSON format types for profile generation.

This module provides Rust types that serialize to the speedscope file format. See: https://github.com/jlfwong/speedscope/wiki/Importing-from-custom-sources

The format supports two profile types:

  • Evented: Open/close frame events with timestamps (like function calls)
  • Sampled: Periodic stack samples with weights

Structs§

Event
A frame open or close event in an evented profile.
EventedProfile
An event-based profile where function calls are explicit open/close events.
Frame
A stack frame definition.
SampledProfile
A sample-based profile with periodic stack snapshots.
Shared
Shared data between profiles, primarily frame definitions.
SpeedscopeFile
Root container for a speedscope profile file.

Enums§

EventType
Type of frame event.
Profile
A profile within a speedscope file.
ValueUnit
Units for profile values.

Constants§

SCHEMA
The speedscope JSON schema URL.