procmaps

Crates.ioprocmaps
lib.rsprocmaps
version0.4.1
sourcesrc
created_at2018-12-28 19:17:31.369361
updated_at2021-01-14 21:24:20.668506
descriptionCrate for gathering currently mapped memory regions for a given PID
homepage
repositoryhttps://github.com/jabedude/procmaps
max_upload_size
id104244
size14,539
Josh Abraham (jabedude)

documentation

https://docs.rs/procmaps/

README

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());
    }
}
Commit count: 54

cargo fmt