This task can be performed using ProcessSpy
Monitor macOS processes like a pro
Best product for this task
ProcessSpy
dev-tools
Monitor macOS processes, command line arguments, open files, run shortcuts on process/start finish, find process by clicking mouse anywhere on the screen
What to expect from an ideal product
- Easily track active macOS processes and all their command line arguments.
 - Automatically monitor open files associated with each process.
 - Set up and run shortcuts when a process starts or finishes.
 - Quickly identify processes by just clicking anywhere on the screen.
 - Get real-time insights and detailed data on what's happening under the hood.
 
