Skip to main contentCrate piano_runtime
Source - FunctionRecord
- Aggregated timing data for a single function.
- Guard
- RAII timing guard. Records elapsed time on drop.
- collect
- Aggregate raw records into per-function summaries, sorted by self_ms descending.
- enter
- Start timing a function. Returns a Guard that records the measurement on drop.
- flush
- Flush collected timing data to a JSON file on disk.
- init
- No-op retained for API compatibility.
- register
- Register a function name so it appears in output even if never called.
- reset
- Clear all collected timing data.