perf-monitor-rs
perf-monitor-rs copied to clipboard
A cross-platform library to retrieve performance statistics data.
very nice lib to start off, its the thing was looking for, for a long time just one little question here when i use ThreadStat::build() i don't seem to get...
Can I monitor other processes?
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "dl_iterate_phdr" ``` fn getCpuUsage() -> f64 { let mut stat_p = ProcessStat::cur().unwrap(); let _ = (0..1_000).into_iter().sum::(); return stat_p.cpu().unwrap() * 100f64; } ```
Any ETA on Network I/O being inspectable? Or, alternatively, you have any guidance on how I can implement this myself, and I might be able to send a PR?
This commit adds a function that determines the page size on Linux and Android systems and uses this to convert virtual memory size and resident set size from pages to...
this pull request migrates from test Bencher to criterion to avoid using nightly toolchain, however it's necessary to increase minimum supported Rust version to 1.57 according to criterion
ThreadStat::build needs an arg of ThreadId. However there is only one way to build a ThreadId, that is ThreadId::current. How to build a specific ThreadId and pass it to ThreadStat::build?