Giter Club home page Giter Club logo

procmap's Introduction

Build Status

procmap

A simple C++ wrapper around /proc/self/maps

This tool makes it simpler to help visualize the memory map of your process.

It's super simplistic and was created to suit my own needs. Hopefully it provides a good start for you and you'll enhance it with a few more options (and submit a PR!) :-)

Examples

Reading /proc/self/maps

Couldn't be easier.

MemoryMap m;

Visualizing /proc/self/maps

MemoryMap m;
m.print();

screenshot 2018-11-05 at 19 04 40

Iterating through the entries and selecting only those that are writeable

MemoryMap map;
for (auto &segment : map) {
  if (segment.isWriteable()) {
    segment.print();
  }
}

image

Reference

MemoryMap is basically a collection of MemorySegments. Use it as you would a std::vector.

MemorySegment represents a single entry/line in /proc/*/maps. It provides a plethora of utility functions to make life more pleasant. Check the header file for a complete list.

Suggestions / Complaints

Open an issue! :-)

Contributing

PRs are more than welcome.

procmap's People

Contributors

joaomlneto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.