poka.sh

Docs

FOLDED

Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.

Flamegraph Folded Preview.

At a glance

Purpose A folded-stack file (Brendan Gregg's format): one call stack per line with a sample count, the input to flame graphs.
Extensions .folded
Poka parser poka-flamegraph
Viewer poka-table-viewer
Depth tier Parser with a shared viewer (see Depth tiers)
Breadth tier B2 Broad (see Breadth tiers)

How much Poka reads

B2 Broad. The common content of the current and the common older versions is decoded. Some named features or versions are not, and are listed.

Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-flamegraph/src/main.rs (164 lines) and plugin.json. No unit tests or tests/samples.rs; the corpus has no .folded, .collapsed and .perf-folded sample. Covers .folded, .collapsed and .perf-folded. The table lists every stack sorted by samples, with its share, depth, leaf frame and the frame chain (cut at 200 characters). Judgement: B2: every entry is shown; the gaps are limits, redaction by design and fields left raw.

What Poka does not read

  • No flame graph is drawn
  • Stacks are not merged into a tree
  • Frame chains are cut at 200 characters
  • Only the first 2,000 stacks are listed

Libraries

Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.

  • inferno (candidate; CDDL-1.0; Rust; https://github.com/jonhoo/inferno) — flamegraph::from_reader / from_lines read folded stack lines (docs.rs/inferno); primarily renders SVG; CDDL-1.0 is a file-level copyleft licence

Sources

  • parsers/poka-flamegraph/src/main.rs
  • parsers/poka-flamegraph/plugin.json