Skip to content

fix: Flamegraph - Bars aren't configurable in the settings#65

Merged
traplol merged 1 commit intomainfrom
agent/issue-60
Mar 21, 2026
Merged

fix: Flamegraph - Bars aren't configurable in the settings#65
traplol merged 1 commit intomainfrom
agent/issue-60

Conversation

@traplol
Copy link
Copy Markdown
Owner

@traplol traplol commented Mar 21, 2026

Summary

  • Add flame_bar_height and flame_bar_gap settings to ViewState, replacing the hardcoded BAR_H = 20.0f and BAR_GAP = 1.0f constants in the flamegraph renderer
  • Add a new Flamegraph tab in the Settings modal with drag-float controls for bar height and bar gap, plus a reset button
  • Persist the new settings to JSON (save/load), following the same pattern as existing timeline layout settings
  • Add unit tests for defaults, set/get, and reset

Closes #60

🤖 Generated with Claude Code

Add flame_bar_height and flame_bar_gap settings to ViewState, exposed
in a new Flamegraph tab in the Settings dialog. Values are persisted
to the settings JSON file and used by the flamegraph icicle renderer
instead of the previous hardcoded constants.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@traplol traplol merged commit d9d23ca into main Mar 21, 2026
3 checks passed
@traplol traplol deleted the agent/issue-60 branch March 21, 2026 01:50
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.

Flamegraph - Bars aren't configurable in the settings

1 participant