Expand description
Perf recording types and statistics.
Structs§
- Perf
Frequency Limit - Error returned when the requested sample rate exceeds the kernel’s
perf_event_max_sample_rate. - Poll
Summary - Work completed by one
Recorder::pollcall. - Recorder
- Records stack samples for one or more Linux processes.
- Recorder
Options - Options used when attaching a
Recorderto a process. - Recording
Summary - Counters collected while recording.
- Sample
Error Stats - Atomic counters for sample error statistics.
- Unwind
Fallback Stats - Counts successful unwind steps that had to use frame pointers.
Enums§
- Attach
Mode - How recording should attach to a process.
- Attach
Outcome - Result of adding a process to an existing recording.
- Refresh
Outcome - Result of reconciling an attached process’s thread list.
- Sample
Error Kind - Categories of sample failures for statistics tracking.
- Sample
Rate - Valid sampling frequency.
- Unwind
Fallback Kind - Reason framehop used frame-pointer unwinding instead of module unwind data.
Constants§
- MAX_
SAMPLE_ USER_ STACK - Maximum accepted
sample_stack_userrequest, in bytes. The kernel may return fewer bytes so the complete perf record still fits its size field. Acts as a ceiling forRecorderOptions::stack_size; larger values are rejected.
Functions§
- max_
sample_ rate - Read the kernel’s current maximum perf sample rate.