Skip to content

Generate "ignore case" button on flamegraphs#365

Open
jputlock wants to merge 5 commits into
jonhoo:mainfrom
jputlock:case-insensitive
Open

Generate "ignore case" button on flamegraphs#365
jputlock wants to merge 5 commits into
jonhoo:mainfrom
jputlock:case-insensitive

Conversation

@jputlock
Copy link
Copy Markdown

@jputlock jputlock commented May 5, 2026

This feature is already implemented in the original perl script.

Changes:

  • Adds an "ignore case" button to the top right of flamegraphs, shifting the search button left slightly
    • Added a tooltip for this, which forced direct use of the svg library instead of calling write_str
  • Ctrl+i can be used to toggle this dynamically

"ignore case" is additionally bound into the URI parameters.

To verify, I ran cargo run --bin inferno-flamegraph < tests/data/flamegraph/base/flames.txt > test.svg and got the following flamegraph:
image

Hovering:
image

Searching final (standard behavior):
image

Searching final with ignore case:
image

@jonhoo
Copy link
Copy Markdown
Owner

jonhoo commented May 31, 2026

Oh, nice! Could you please link to the original PR for this change in the upstream Perl project?

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