Skip to main content

Module profiler

Module profiler 

Source
Expand description

Profiling utilities for task, frame, and thread performance tracking.

Structs§

FrameTiming
Timing for a single drawn window frame.
FrameTimingCollector
Drains frame timings recorded after this collector was created, tracking a cursor so each call to Self::collect_unseen returns only new entries.
SerializedLocation
Serializable variant of core::panic::Location
SerializedTaskTiming
Serializable variant of [TaskTiming]
SerializedThreadTaskTimings
Serializable variant of [ThreadTaskTimings]

Functions§

frame_trace_enabled
Returns whether frame timing collection is enabled.
record_frame_timing
Records the timing of a drawn window frame.
set_frame_trace_enabled
Enables or disables frame timing collection at runtime.
set_trace_enabled
Enables or disables task timing trace collection at runtime.
trace_enabled
Returns whether task timing tracing is enabled.