As a small learning and teaching (and helpful during debug!) project, I have authored and hosted a small project on GitHub going by the name of procmap, available here: https://github.com/kaiwan/procmap (do git clone it). A snippet from its README.md file helps explain its purpose:
procmap is designed to be a console/CLI utility to visualize the complete memory map of a Linux process, in effect, to visualize the memory mappings of both the kernel and user mode Virtual Address Space (VAS).
It outputs a simple visualization, in a vertically-tiled format ordered by descending virtual address, of the complete memory map of a given process (see screenshots below). The script has the intelligence to show kernel and user space mappings as well as calculate and show the sparse memory regions that will be present. Also, each segment or mapping is scaled by relative size (and color-coded for readability). On 64-bit systems, it also...