Skip to content

feat(engine): make metrics in ui more readable#8883

Merged
sipsma merged 1 commit into
dagger:mainfrom
cwlbraa:cwlbraa/dev-4668-nicely-format-metrics-based-on-unit
Nov 8, 2024
Merged

feat(engine): make metrics in ui more readable#8883
sipsma merged 1 commit into
dagger:mainfrom
cwlbraa:cwlbraa/dev-4668-nicely-format-metrics-based-on-unit

Conversation

@cwlbraa
Copy link
Copy Markdown
Contributor

@cwlbraa cwlbraa commented Nov 7, 2024

this PR makes the tui print human-readable byte and duration values.

any suggestions on how to manually test the pressure duration printing? I never have these print on dagger call check.

bytes, however, are confirmed working and looking good: exec sh -c git checkout -q $(git rev-parse HEAD) 0.4s | Disk Read Bytes: 45 MB | Disk Write Bytes: 12 kB

Signed-off-by: Connor Braa <connor@dagger.io>
@cwlbraa cwlbraa requested a review from sipsma November 7, 2024 23:46
@sipsma
Copy link
Copy Markdown
Contributor

sipsma commented Nov 8, 2024

Nice!

any suggestions on how to manually test the pressure duration printing? I never have these print on dagger call check.

Oh interesting, I think those being present in the cgroup might be dependent on kernel config, so possible you aren't getting them. I'll pull this locally and give it a quick check.

Copy link
Copy Markdown
Contributor

@sipsma sipsma left a comment

Choose a reason for hiding this comment

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

any suggestions on how to manually test the pressure duration printing? I never have these print on dagger call check.
Oh interesting, I think those being present in the cgroup might be dependent on kernel config, so possible you aren't getting them. I'll pull this locally and give it a quick check.

Tried it out locally and looks good!

@sipsma sipsma merged commit 5e769de into dagger:main Nov 8, 2024
@gerhard gerhard added this to the v0.14.0 milestone Nov 8, 2024
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.

3 participants