{"id":19286906,"url":"https://github.com/joaomlneto/procmap","last_synced_at":"2025-04-22T03:33:50.569Z","repository":{"id":41263303,"uuid":"156263413","full_name":"joaomlneto/procmap","owner":"joaomlneto","description":"C++ wrapper around /proc/self/maps","archived":false,"fork":false,"pushed_at":"2020-05-14T12:20:51.000Z","size":22,"stargazers_count":15,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T19:19:10.823Z","etag":null,"topics":["cpp","cpp-lib","cpp-libraries","cpp-library","cpp14","library","linux","mapping","memory","memory-allocation","memory-allocations","memory-analysis","memory-management","memory-mapping","memory-monitor","memory-monitoring","process","wrapper","wrapper-functions","wrapper-library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joaomlneto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-05T18:25:37.000Z","updated_at":"2025-03-28T14:26:44.000Z","dependencies_parsed_at":"2022-08-26T07:40:36.110Z","dependency_job_id":null,"html_url":"https://github.com/joaomlneto/procmap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaomlneto%2Fprocmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaomlneto%2Fprocmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaomlneto%2Fprocmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaomlneto%2Fprocmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joaomlneto","download_url":"https://codeload.github.com/joaomlneto/procmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250167614,"owners_count":21386004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp-lib","cpp-libraries","cpp-library","cpp14","library","linux","mapping","memory","memory-allocation","memory-allocations","memory-analysis","memory-management","memory-mapping","memory-monitor","memory-monitoring","process","wrapper","wrapper-functions","wrapper-library"],"created_at":"2024-11-09T22:04:44.207Z","updated_at":"2025-04-22T03:33:50.287Z","avatar_url":"https://github.com/joaomlneto.png","language":"C++","readme":"[![Build Status](https://travis-ci.com/joaomlneto/procmap.svg?branch=master)](https://travis-ci.com/joaomlneto/procmap)\n\n# procmap\nA simple C++ wrapper around `/proc/self/maps`\n\nThis tool makes it simpler to help visualize the memory map of your process.\n\nIt'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!) :-)\n\n## Examples\n\n### Reading `/proc/self/maps`\n\nCouldn't be easier.\n```cpp\nMemoryMap m;\n```\n\n### Visualizing `/proc/self/maps`\n\n```cpp\nMemoryMap m;\nm.print();\n```\n\n![screenshot 2018-11-05 at 19 04 40](https://user-images.githubusercontent.com/1539767/48020367-a9011b00-e12d-11e8-8f2c-03d29bf786ad.png)\n\n### Iterating through the entries and selecting only those that are writeable\n\n```cpp\nMemoryMap map;\nfor (auto \u0026segment : map) {\n  if (segment.isWriteable()) {\n    segment.print();\n  }\n}\n```\n\n![image](https://user-images.githubusercontent.com/1539767/48020839-d1d5e000-e12e-11e8-87be-5e7ced7e1e88.png)\n\n## Reference\n\nMemoryMap is basically a collection of MemorySegments. Use it as you would a `std::vector`.\n\nMemorySegment represents a single entry/line in `/proc/*/maps`. It provides a plethora of utility functions to make life more pleasant. Check the [header file](https://github.com/joaomlneto/process-memory-map/blob/master/include/procmap/MemorySegment.hpp) for a complete list.\n\n## Suggestions / Complaints\nOpen an issue! :-)\n\n## Contributing\nPRs are more than welcome.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaomlneto%2Fprocmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaomlneto%2Fprocmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaomlneto%2Fprocmap/lists"}