pperf 0.1.2

query process performance
Documentation
  • Coverage
  • 46.67%
    7 out of 15 items documented5 out of 8 items with examples
  • Size
  • Source code size: 10.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 373.37 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • duguying

pperf

进程性能指标查询库

Usage

  • 获取进程cpu时间(单位jiffies,即1/Hz)
  • 获取进程cpu增量时间(单位jiffies,即1/Hz,与上次获取cpu时间的增量)
  • 获取进程rss内存
  • 获取进程vsize内存
  • 获取进程uss内存
let tool = PPerfTool::new().unwrap();
println!(
    "get_process_cpu_incr_time: {:?}",
    tool.unwrap().get_process_cpu_incr_time().unwrap()
)

License

MIT License