- Clone the repo
- Replace
custom_string_1
with whatever command string you want to track. - Add more custom strings by duplicating the line with
custom_string_1
and then duplicating this line in thejsonObject
variable{ "string": "OrbStack", "memory": "$(echo $customString1 | awk '{print $1}')", "cpu": "$(echo $customString1 | awk '{print $2}')" }
and replacingcustomString1
customString2
(if that's the count you're at). - Edit your crontab with
crontab -e
and add the lines in the crontab.cron file in the repo.
I've been switching between different ways of running Docker on my Mac and wanted to a way to reliably track each ways memory usage.