-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15f06a6
commit d30c9d7
Showing
38 changed files
with
1,242 additions
and
1,175 deletions.
There are no files selected for viewing
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
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,10 @@ | ||
Returns `true` if this OS is supported. Please refer to the | ||
[crate-level documentation](index.html) to get the list of supported OSes. | ||
|
||
``` | ||
if sysinfo::IS_SUPPORTED { | ||
println!("This OS is supported!"); | ||
} else { | ||
println!("This OS isn't supported (yet?)."); | ||
} | ||
``` |
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,8 @@ | ||
This is the minimum interval time used internally by `sysinfo` to refresh the CPU time. | ||
|
||
⚠️ This value differs from one OS to another. | ||
|
||
Why is this constant even needed? | ||
|
||
If refreshed too often, the CPU usage of processes will be `0` whereas on Linux it'll | ||
always be the maximum value (`number of CPUs * 100`). |
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,8 @@ | ||
Returns the list of the supported signals on this system (used by | ||
[`ProcessExt::kill_with`][crate::ProcessExt::kill_with]). | ||
|
||
``` | ||
use sysinfo::{System, SUPPORTED_SIGNALS}; | ||
println!("supported signals: {:?}", SUPPORTED_SIGNALS); | ||
``` |
This file was deleted.
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
Oops, something went wrong.