Crates.io | procmaps |
lib.rs | procmaps |
version | 0.4.1 |
source | src |
created_at | 2018-12-28 19:17:31.369361 |
updated_at | 2021-01-14 21:24:20.668506 |
description | Crate for gathering currently mapped memory regions for a given PID |
homepage | |
repository | https://github.com/jabedude/procmaps |
max_upload_size | |
id | 104244 |
size | 14,539 |
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"
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());
}
}