Last active
August 29, 2015 14:05
-
-
Save bdkosher/0fee7f4d16c8fb8311a5 to your computer and use it in GitHub Desktop.
Shows the total mem usage (in KB) and count of chrome.exe instances (assumes Groovy shell being on PATH)
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
@tasklist /NH /FI "IMAGENAME eq chrome.exe" | groovy -e "int tm = 0, ci = 0; new BufferedReader(new InputStreamReader(System.in)).text.eachLine { def p = it.split(/\s{2,}/); if (p.length == 4) {tm += (p[-1] - ',' - ' K') as int; ci++} }; println tm + ' (' + ci + ' instances)'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment