Skip to content

Generate "ignore case" button on flamegraphs#365

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

Generate "ignore case" button on flamegraphs#365
jputlock wants to merge 5 commits intojonhoo: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

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.

1 participant