A command-line tool for memory usage statistics.
-
Via Scoop
# Add scoop bucket
scoop bucket add Scoop4kariiin https://github.com/AkariiinMKII/Scoop4kariiin
# Install
scoop install WhoAteMyRAM
Notice that you need to install git for windows in advance.
# Go to modules folder
$UsePath = (Split-Path $PROFILE | Join-Path -ChildPath Modules); if(!(Test-Path $UsePath)) {New-Item $UsePath -Type Directory -Force | Out-Null}; Set-Location $UsePath
# Clone this repository
git clone https://github.com/AkariiinMKII/WhoAteMyRAM
# Modify PS profile to enable auto-import
if (!(Test-Path $PROFILE)) {New-Item $PROFILE -Type File -Force | Out-Null}
Add-Content -Path $PROFILE -Value "Import-Module WhoAteMyRAM"
Print or export memory usage statistics.
Parameters | Type | Mandatory | Descriptions |
---|---|---|---|
Name |
String | ✗ | A filter for processes to show, file extension can be omitted. |
Exactly |
switch | ✗ | Use this parameter to match process name exactly. |
Unit |
String | ✗ | Specify the unit of memory size, support KB , MB , GB , TB . |
Accuracy |
Int32 | ✗ | Specify decimal places to show, support integers from 0 to 15 . |
Sort |
String | ✗ | Sort processes by memory usage, support + , - , Ascending , Descending . |
NoSum |
switch | ✗ | Sum info won't be generated with this parameter. |
Export |
String | ✗ | Export results to csv file, file extension can be omitted. |
Help |
Switch | ✗ | Print help info. |
- Example:
ListMemoryUsage -Name chrome -Exactly -Unit GB -Accuracy 1 -Sort + -NoSum -Export Abc
Find out who is the RAM eater, just run it!
Parameters | Type | Mandatory | Descriptions |
---|---|---|---|
Help |
Switch | ✗ | Print help info. |
Version |
Switch | ✗ | Print version info. |
- Example:
WhoAteMyRAM
It's chrome, who ate 19.19 GB of RAM!