Skip to content

Entry color choosers: search box, and only in-range entries in Time Profile - #157

Merged
ritvikrao merged 3 commits into
mainfrom
entry-color-search
Jul 28, 2026
Merged

Entry color choosers: search box, and only in-range entries in Time Profile#157
ritvikrao merged 3 commits into
mainfrom
entry-color-search

Conversation

@lvkale

@lvkale lvkale commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Quality-of-life improvements to the entry method color/visibility choosers:

  • Search box in every chooser. Long entry method lists are hard to scroll through when hunting for one name. The shared entry-method chooser (used by Time Profile, Timeline, Histogram, Overview, Usage Profile) and Timeline's Show/Hide User Events dialog get a Search field above the table that filters rows live as you type — case-insensitive substring match on name or ID. Clearing restores the full list; filtering composes with Timeline's "Show All Entry Methods" checkbox, and color editing stays on the correct row while filtered.
  • Time Profile's Choose Entry Colors now lists only the entry methods present in the loaded range (plus Idle/Overhead), matching Timeline's behavior instead of showing every EP in the STS file. Implemented as a getEntryFilter() hook in GenericGraphWindow (default null preserves existing behavior for other tools) with TimeProfileWindow implementing EntryMethodVisibility backed by its existing existsArray.
  • MainWindow no longer NPEs when a trace fails to load (e.g. the file was moved): the failure already shows an error dialog, but the status panel then dereferenced a null StsReader.

🤖 Generated with Claude Code

lvkale and others added 3 commits July 27, 2026 23:43
Long entry method lists are hard to scroll through when hunting for one
name. Both list dialogs (entry methods, and Timeline's user events) get
a Search field above the table that filters rows live as you type:
case-insensitive substring match on the name or ID columns, via a
TableRowSorter used only for filtering (column-click sorting stays off
since the color column is not comparable; row-index conversion keeps
color editing on the right row while filtered).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The Color Scheme chooser listed every entry method in the STS file;
Timeline's chooser already restricts itself to entries present in the
loaded data. GenericGraphWindow gains a getEntryFilter() hook (default
null keeps the old behavior for other tools), and TimeProfileWindow
implements EntryMethodVisibility backed by its existsArray, so the
chooser shows exactly the EPs in the picture plus Idle/Overhead. Falls
back to the full list until data has loaded.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
initAnalysis failures (e.g. a moved trace file) already show an error
dialog, but done() still called updateStatusSTS(null) and threw.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ritvikrao
ritvikrao merged commit 0a3175c into main Jul 28, 2026
2 checks passed
@ritvikrao
ritvikrao deleted the entry-color-search branch July 28, 2026 14:16
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