Configure Sampling Modes and Intervals
masterStackprof supports four sampling modes. You can tune the interval to adjust overhead or granularity.
Supported Modes
:wall: UsesITIMER_REALandSIGALRM. This is the default mode. Samples everyintervalmicroseconds of wallclock time.:cpu: UsesITIMER_PROFandSIGPROF. Samples everyintervalmicroseconds of CPU activity.:object: UsesRUBY_INTERNAL_EVENT_NEWOBJ. Samples everyintervalallocations (default interval is 1).:custom: User-defined viaStackProf.sample.
Configuration Options
mode: The sampling mode (:wall,:cpu,:object, or:custom).interval: The sampling interval (microseconds for wall/cpu, number of allocations for object).out: Path to save the profile dump.ignore_gc: Set totrueto disable explicit garbage collection frames in the profile (useful for long traces to avoid gaps in flamegraphs).