Last active
July 29, 2017 01:06
-
-
Save mrmanc/14bdf23b4bd0ab868e90ddb723404685 to your computer and use it in GitHub Desktop.
macos top snapshot with cpu
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
top -stats pid,cpu,command -l 2 -o cpu | awk 'BEGIN{sampleNumber=0} /^PID/ {sampleNumber += 1;} {if (sampleNumber == 2) {print $0}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment