Skip to content

Add flamegraph diff action for two selected queries#245

Merged
azat merged 1 commit intomainfrom
flamegraph-diff
Apr 20, 2026
Merged

Add flamegraph diff action for two selected queries#245
azat merged 1 commit intomainfrom
flamegraph-diff

Conversation

@azat
Copy link
Copy Markdown
Owner

@azat azat commented Apr 19, 2026

Select two queries with and pick "Query flamegraph diff" from the action menu to compare their trace_log flamegraphs. The diff renders two top-level trees: [+more] (stacks that grew, weight = B-A) and [-less] (stacks that shrunk, weight = A-B); unchanged stacks are dropped.

Supports CPU, Real, Memory, MemorySample, JemallocSample, MemoryAllocatedWithoutCheck and ProfileEvent trace types, in both TUI and pastila-share modes.

Fixes #100.

@azat
Copy link
Copy Markdown
Owner Author

azat commented Apr 19, 2026

Maybe better alternative will be to add support in flamelens for it, since it requires different colorschema, same as flamegraph.pl has

Select two queries with <Space> and pick "Query <type> flamegraph diff"
from the action menu to compare their trace_log flamegraphs.

The diff is similar to `difffolded.pl|flamegraph.pl`.

Supports CPU, Real, Memory, MemorySample, JemallocSample,
MemoryAllocatedWithoutCheck and ProfileEvent trace types, in both TUI
and pastila-share modes.

Fixes #100.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@azat azat force-pushed the flamegraph-diff branch from f108941 to 78dd7b6 Compare April 20, 2026 07:52
@azat azat merged commit 78dd7b6 into main Apr 20, 2026
8 checks passed
@azat azat deleted the flamegraph-diff branch April 20, 2026 08:00
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.

Add flamegraph diffs

1 participant