Skip to content

Instantly share code, notes, and snippets.

@rlipscombe
Last active January 5, 2018 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlipscombe/3650ebd36c697f87ad3b0e253e26cfe9 to your computer and use it in GitHub Desktop.
Save rlipscombe/3650ebd36c697f87ad3b0e253e26cfe9 to your computer and use it in GitHub Desktop.
/proc/pid/maps doesn't have the *size* of the mapped regions
sudo cat /proc/$PID/maps | perl -ne 'print sprintf("%10s", hex($2) - hex($1)), " ", $_ if /([0-9a-f]+)-([0-9a-f]+)/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment