Skip to content

Beefing up the proc stats#5

Open
jkbecker wants to merge 4 commits intomainfrom
proc-stats-galore
Open

Beefing up the proc stats#5
jkbecker wants to merge 4 commits intomainfrom
proc-stats-galore

Conversation

@jkbecker
Copy link
Contributor

Adding a few more fun details to squeeze out of /proc. I'm not done yet but I'm also not happy with a few things that are already there so... feel free to poke at it in the meantime.

@jkbecker jkbecker requested review from ceejbot and shinypb April 12, 2023 15:01
Memory,
Io,
}
impl fmt::Display for SysResource {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All of these impls seem really verbose to me... is there a more elegant way to do this?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think there are some crates that could help (e.g. strum), but it seems ok as-is to me for now. That being said, I am not sure you need either of the impl fmt::Display blocks; nothing broke when I commented them out. 🤔

Johannes Becker added 2 commits April 12, 2023 11:20
Copy link
Contributor

@shinypb shinypb left a comment

Choose a reason for hiding this comment

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

Neat! I knew you'd be able to dig up some fun stuff. 😅

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