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

#669 in Unix APIs

Download history 1/week @ 2024-07-20 13/week @ 2024-07-27 7/week @ 2024-08-03 2/week @ 2024-08-10 7/week @ 2024-09-07 3/week @ 2024-09-14 15/week @ 2024-09-21 13/week @ 2024-09-28 5/week @ 2024-10-05 25/week @ 2024-10-12 8/week @ 2024-10-19 27/week @ 2024-10-26 17/week @ 2024-11-02

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