Module debug::perf
Performance Counters Hardware performance counter access (x86-64 RDTSC, AArch64 PMCCNTR, RISC-V cycle). Freestanding-safe.
Structs
| PerfCounter |
Functions
| perf_read_cycle | Read the raw cycle counter for the current arch. |
| perf_read_ns | Read timestamp in nanoseconds (best-effort; returns 0 in freestanding without freq). |
Macros
| PERF_BEGIN | |
| PERF_END |