Skip to content

Display memory grants in MB/GB in runtime summary #68

@erikdarlingdata

Description

@erikdarlingdata

Problem

Memory grant values in the Runtime Summary pane are shown in KB, which produces long strings that are hard to scan:

Memory grant    546,120 KB granted, 511,664 KB used (94%)

Solution

Convert to human-readable units:

  • Under 1 MB: show KB (e.g., 512 KB)
  • 1 MB to 1 GB: show MB with 1 decimal (e.g., 533.3 MB granted, 499.7 MB used (94%))
  • Over 1 GB: show GB with 2 decimals (e.g., 2.14 GB granted, 1.98 GB used (92%))

This keeps the line shorter and more readable at a glance.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions