Skip to main content

Module record

Module record 

Source
Expand description

Perf recording types and statistics.

Structs§

PerfFrequencyLimit
Error returned when the requested sample rate exceeds the kernel’s perf_event_max_sample_rate.
PollSummary
Work completed by one Recorder::poll call.
Recorder
Records stack samples for one or more Linux processes.
RecorderOptions
Options used when attaching a Recorder to a process.
RecordingSummary
Counters collected while recording.
SampleErrorStats
Atomic counters for sample error statistics.
UnwindFallbackStats
Counts successful unwind steps that had to use frame pointers.

Enums§

AttachMode
How recording should attach to a process.
AttachOutcome
Result of adding a process to an existing recording.
RefreshOutcome
Result of reconciling an attached process’s thread list.
SampleErrorKind
Categories of sample failures for statistics tracking.
SampleRate
Valid sampling frequency.
UnwindFallbackKind
Reason framehop used frame-pointer unwinding instead of module unwind data.

Constants§

MAX_SAMPLE_USER_STACK
Maximum accepted sample_stack_user request, in bytes. The kernel may return fewer bytes so the complete perf record still fits its size field. Acts as a ceiling for RecorderOptions::stack_size; larger values are rejected.

Functions§

max_sample_rate
Read the kernel’s current maximum perf sample rate.