Skip to content

Extrema, Usage Profile: Show the analyzed time range readably on the chart - #168

Merged
ritvikrao merged 3 commits into
mainfrom
extrema-usage-time-range
Aug 24, 2026
Merged

Extrema, Usage Profile: Show the analyzed time range readably on the chart#168
ritvikrao merged 3 commits into
mainfrom
extrema-usage-time-range

Conversation

@lvkale

@lvkale lvkale commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

From Kale's wishlist, verified by him in the GUI on the 896-PE frontier trace.

Extrema: the x axis shows notable PEs, so nothing on the chart said what time interval the analysis covered. The chart title is now flanked by the analyzed time range (left) and the processor selection (right), using the title-annotation hook Graph gained in #163; both trim to fit a narrow window. Works for the range-dialog path and the online-outlier path.

Usage Profile already printed the time range as the second title line, but the first line expanded the full PE list (Util.listToString), so at hundreds of PEs it grew wider than the canvas and everything identifying the chart was lost. It now uses the strided selection summary ("896 PEs (all)", "384 of 1920 PEs: 0-1915:5").

Both headers print times with the new U.humanReadableRange: at most three decimal places, adding digits only when the range is so narrow the endpoints would otherwise print alike (1.2345s - 1.2346s). Previously they inherited the range dialog's full-precision format (as many decimals as the number has digits).

🤖 Generated with Claude Code

lvkale and others added 3 commits August 22, 2026 20:27
The x axis shows notable PEs, so nothing on the chart said what time
interval the analysis covered. Flank the chart title with the loaded
time range (left) and the processor selection (right), using the
title-annotation hook Graph already has; both trim to fit the window.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The title expanded the full PE list (Util.listToString), so at
hundreds of PEs it grew wider than the canvas and everything that
identifies the chart scrolled out of sight, including the time range
on the second line. Use the strided selection summary instead, and
print the time range with time units rather than bare millisecond
floats.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Chart headers borrowed the range dialog's full-precision time format
(as many decimals as the number has digits). New U.humanReadableRange
prints a time range with at most three decimals, adding digits only
when the range is so narrow that the endpoints would print alike.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lvkale
lvkale requested review from adityapb and removed request for matthiasdiener August 23, 2026 03:42
@ritvikrao
ritvikrao merged commit b74369d into main Aug 24, 2026
2 checks passed
@ritvikrao
ritvikrao deleted the extrema-usage-time-range branch August 24, 2026 20:06
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