Skip to content

feat(linux): mark truncated and failed sample stacks - #13

Merged
not-matthias merged 1 commit into
codspeedfrom
cod-3911-mark-truncated-nodes-in-samply
Nov 17, 2026
Merged

not-matthias merged 1 commit into
codspeedfrom
cod-3911-mark-truncated-nodes-in-samply

Conversation

@not-matthias

@not-matthias not-matthias commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

TLDR: Make incomplete Linux sample stacks visible as [truncated] or [unwind_failed] synthetic root frames instead of silently dropping the diagnostic.

  • Distinguish capture exhaustion from other unwind errors. Attach labels after frame-pointer recovery, root trimming, and recursion folding.
  • Emit standard Firefox profile label frames. No CLI summary or cache-policy change.
  • The recorded stack-cache replay retains all 132 samples, with 79 under [truncated]. Verified in the Firefox Profiler call tree and flame graph.
  • These labels describe unwind termination, not a guarantee that every recovered frame is correct. The public Rust enum changes; monorepo JSON consumers do not depend on that enum, but integration-specific filtering still needs separate marker-preservation work.

Refs COD-3911

@not-matthias
not-matthias force-pushed the cod-3911-mark-truncated-nodes-in-samply branch from 9a55647 to 4e769c5 Compare October 23, 2026 14:57
@not-matthias
not-matthias marked this pull request as ready for review October 23, 2026 14:59

@GuillaumeLagrange GuillaumeLagrange left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

olgtm

Comment thread samply/src/shared/types.rs Resolved
Comment thread samply/src/linux_shared/converter.rs Resolved
@not-matthias
not-matthias changed the base branch from codspeed to codspeed-stack-cache October 30, 2026 13:54
@not-matthias
not-matthias force-pushed the cod-3911-mark-truncated-nodes-in-samply branch from 4e769c5 to f284242 Compare October 30, 2026 13:54
@not-matthias
not-matthias added this pull request to stack #16 October 30, 2026 13:54
@not-matthias
not-matthias removed this pull request from stack #16 October 30, 2026 13:56
@not-matthias
not-matthias added this pull request to stack #17 October 30, 2026 13:56
@not-matthias
not-matthias force-pushed the cod-3911-mark-truncated-nodes-in-samply branch 2 times, most recently from a701687 to a4a714b Compare November 17, 2026 09:36
@not-matthias
not-matthias force-pushed the cod-3911-mark-truncated-nodes-in-samply branch from a4a714b to ba28bc0 Compare November 17, 2026 09:41
Base automatically changed from codspeed-stack-cache to codspeed November 17, 2026 09:43
Expose incomplete DWARF stacks as synthetic root labels in Firefox profiles instead of silently dropping the truncation sentinel. Distinguish capture exhaustion from other unwind errors, and attach markers after frame-pointer recovery, root trimming, and recursion folding. Keep the existing cache validation policy.

Refs COD-3911
@not-matthias
not-matthias force-pushed the cod-3911-mark-truncated-nodes-in-samply branch from ba28bc0 to 75b908d Compare November 17, 2026 09:43
@not-matthias
not-matthias merged commit 13e8116 into codspeed Nov 17, 2026
11 checks passed
@not-matthias
not-matthias deleted the cod-3911-mark-truncated-nodes-in-samply branch November 17, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants