Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade sysinfo #7156

Merged
merged 2 commits into from
Jul 1, 2022
Merged

chore: upgrade sysinfo #7156

merged 2 commits into from
Jul 1, 2022

Conversation

matklad
Copy link
Contributor

@matklad matklad commented Jul 1, 2022

We no longer need to use the fork it seems

We no longer need to use the fork it seems
@matklad matklad marked this pull request as ready for review July 1, 2022 12:22
@matklad matklad requested a review from a team as a code owner July 1, 2022 12:22
@matklad matklad requested a review from nagisa July 1, 2022 12:22
.get_process(pid)
.expect("refresh_process succeeds, this should be not None");
let proc =
self.sys.process(pid).expect("refresh_process succeeds, this should be not None");
(proc.cpu_usage(), proc.memory())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a blocker here, but a more precise way to measure CPU utilization would be to keep track of how much cpu time (this can be read out using something like this crate) have been consumed between the two measurement points.

@near-bulldozer near-bulldozer bot merged commit ec6fdf1 into near:master Jul 1, 2022
@matklad matklad deleted the m/up-sysinfo branch July 1, 2022 14:25
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