How to enable process accounting on macOS
You can either use an app to turn on process accounting or use command line tools:


App: Onyx


CLI:


Open Terminal and enter:

sudo mkdir /var/account
sudo touch /var/account/acct
sudo accton /var/account/acct

With sa you can print the system accounting statistics. Check man sa