Expand description
Opt-in local recordings. GPU durations come only from tagged driver queries.
Structs§
- Frame
Sample - Frame
Token - Local
Alloc Counter - Thread-local allocation counter suitable for
#[global_allocator]in tests. - Physics
Work - Session
- A bounded recording. Reporting and screenshot encoding happen outside recorded frames.
- Thread
Alloc Scope - RAII scope that counts heap allocations on the current thread from zero
and restores prior counter state on drop. Requires
LocalAllocCounter. - Tracking
Allocator - Install once in an executable. Counts successful Rust allocations/reallocations, not C/driver allocations or live heap size. Counting is enabled only during recordings.
Functions§
- count_
thread_ allocations - Run
fwhile counting successful heap allocations on the current thread. Restores previous state on unwind. RequiresLocalAllocCounterinstalled. - count_
thread_ allocations_ with_ bytes - Run
fwhile counting successful heap allocation calls and bytes on the current thread. Restores previous state on unwind. - json_
string - record_
physics - Accumulate actual solver work for the current thread/frame, including catch-up ticks.
- take_
physics