5 releases (3 breaking)
0.4.1 | Jan 14, 2021 |
---|---|
0.4.0 | Dec 30, 2018 |
0.3.0 | Dec 29, 2018 |
0.2.0 | Dec 28, 2018 |
0.1.0 | Dec 28, 2018 |
#679 in Unix APIs
24 downloads per month
Used in 3 crates
13KB
273 lines
Rust procmaps - retrieve process memory maps
A library for retrieving information about memory mappings for Unix processes.
To use, add this line to your Cargo.toml:
[dependencies]
procmaps = "0.4.1"
Example
use procmaps::Mappings;
let mappings = Mappings::from_pid(pid).unwrap();
for mapping in mappings {
if mapping.perms.executable {
println!("Region: {:x} - {:x} Size: {}", mapping.base, mapping.ceiling, mapping.size_of_mapping());
}
}
Dependencies
~1MB
~19K SLoC