Skip to content

feat: Use ranges with human readable sizes - #2589

Merged
Lightning00Blade merged 1 commit into
ChromeDevTools:mainfrom
dinfuehr:di/size-range
Aug 19, 2026
Merged

Lightning00Blade merged 1 commit into
ChromeDevTools:mainfrom
dinfuehr:di/size-range

Conversation

@dinfuehr

@dinfuehr dinfuehr commented Aug 18, 2026 •

Copy link
Copy Markdown
Collaborator

Replace separate minimum and maximum heap-size filters with range strings. Values can use byte counts or units, such as 1024-2048, 1MB-2MB, -1MiB, and 1GiB-. A bare value such as 10M is treated as a minimum.

The range syntax is used by query_heapsnapshot_objects for retained and self sizes and by get_heapsnapshot_edges for retained sizes.

Comment thread src/utils/bytes.ts Resolved
Comment thread src/tools/memory.ts Resolved
Comment thread tests/tools/memory.test.ts Resolved

@Lightning00Blade Lightning00Blade left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with one comment

@Lightning00Blade
Lightning00Blade added this pull request to the merge queue Aug 19, 2026
Merged via the queue into ChromeDevTools:main with commit 61e312f Aug 19, 2026
28 of 30 checks passed
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