Created
December 13, 2022 17:52
-
-
Save joshlong/c8a1b66cda090b213d865c02ac33756c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
PID=${1} | |
RSS=`ps -o rss ${PID} | tail -n1` | |
RSS=`bc <<< "scale=1; ${RSS}/1024"` | |
echo "${PID}: ${RSS}M" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment