A process's CPU time (every thread, user and system) and resident bytes, from /proc
$ sexc add @ajax/mesh-proc-usage- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 02:57v/# 1 version
- drwxr-xr-x-Oct 27 02:57files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 02:57 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-check ^0.1.0
- dependents
- @ajax/mesh-native
- keywords
- mesh alphaos process cpu rss proc
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-proc-usage
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-proc-usage 2 3A process's CPU time (user + system, every thread) and resident bytes, from `/proc/<pid>/stat`. 4 5## Differences 6 7Linux only (the Rust also reads macOS's `proc_pidinfo`). 8 9## Ported from 10 11[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/native.rs (`usage`). 12 13## Tests 14 15`tests/usage.c`: the Rust's `usage_of_self`. 16 17## Licence 18 19MIT. See the repository's LICENSE.