/hog

CLI tool to check for memory hogs in MacOS

Primary LanguageTypeScriptMIT LicenseMIT

Hog

This tool leverages top and ps to get a rough idea of what applications are using excessive memory or CPU.

Screen Shot 2022-06-08 at 13 14 27

Try It Out

brew install deno
deno run --allow-run=top,ps --check https://deno.land/x/hog/hog.ts

Installing

deno install --allow-run=top,ps https://deno.land/x/hog/hog.ts

Running

hog

to show PIDs for top level processes that were collapsed by name:

hog -p

to see CPU usage

hog cpu

note that this will take a few seconds as the default is to take 4 samples. To get CPU usage over more samples:

hog cpu -s 20