forked from NordicHPC/sonar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NordicHPC#146 from lars-t-hansen/w-142-sysinfo
Fix NordicHPC#142 - implement sysinfo
- Loading branch information
Showing
8 changed files
with
802 additions
and
54 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#[derive(PartialEq)] | ||
pub struct Process { | ||
pub device: Option<usize>, // Device ID | ||
pub pid: usize, // Process ID | ||
pub user: String, // User name, _zombie_PID for zombies | ||
pub uid: usize, // User ID, 666666 for zombies | ||
pub gpu_pct: f64, // Percent of GPU /for this sample/, 0.0 for zombies | ||
pub mem_pct: f64, // Percent of memory /for this sample/, 0.0 for zombies | ||
pub mem_size_kib: usize, // Memory use in KiB /for this sample/, _not_ zero for zombies | ||
pub command: String, // The command, _unknown_ for zombies, _noinfo_ if not known | ||
} | ||
|
||
pub const ZOMBIE_UID: usize = 666666; | ||
|
||
#[derive(PartialEq)] | ||
pub struct Card { | ||
pub model: String, | ||
pub mem_size_kib: i64, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.