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

#691 in Unix APIs

Download history 9/week @ 2024-02-19 24/week @ 2024-02-26 26/week @ 2024-03-04 29/week @ 2024-03-11 8/week @ 2024-03-18 13/week @ 2024-03-25

77 downloads per month
Used in 3 crates

MIT/Apache

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
~16K SLoC