An open API service indexing awesome lists of open source software.

https://github.com/jabedude/procmaps

Provides Rust interface to get current memory mappings for a given process
https://github.com/jabedude/procmaps

linux memory process procfs virtual-memory

Last synced: about 2 months ago
JSON representation

Provides Rust interface to get current memory mappings for a given process

Awesome Lists containing this project

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:

```toml
[dependencies]
procmaps = "0.4.2"
```
## Example
```rust
use procmaps::Mappings;

let mappings = Mappings::from_pid(pid).unwrap();
for mapping in mappings.iter() {
if mapping.perms.executable {
println!("Region: {:x} - {:x} Size: {}", mapping.base, mapping.ceiling, mapping.size_of_mapping());
}
}
```