Last active
January 5, 2018 15:37
-
-
Save rlipscombe/3650ebd36c697f87ad3b0e253e26cfe9 to your computer and use it in GitHub Desktop.
/proc/pid/maps doesn't have the *size* of the mapped regions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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