A library for retrieving information about memory mappings for Unix processes.
To use, add this line to your Cargo.toml:
toml
[dependencies]
procmaps = "0.4.1"
```rust use procmaps::Mappings;
let mappings = Mappings::frompid(pid).unwrap(); for mapping in mappings { if mapping.perms.executable { println!("Region: {:x} - {:x} Size: {}", mapping.base, mapping.ceiling, mapping.sizeof_mapping()); } } ```