Skip to main content
Samples the main thread’s stack on a timer. Identical stacks in a window collapse into one reading with an occurrenceCount rather than repeating — stackSamples is stream, interval, but the readings within a window are themselves aggregated by shape. Config (runtime.stackSamples:key=value,...)
  • intervalMs (int 10…1000): How often the main thread’s stack is sampled. Default 50.
Real output from basset request get, captured against a running app — trimmed here to one distinct stack out of the many the window reported:
occurrenceCount: 14 says this exact stack accounted for 14 of the window’s 19 samples — the rest of the window held other, less common stacks, each its own reading.