sysprof

Statistical system-wide profiler for analyzing application performance

brewmacoslinux
Try with needOr install directly
Source

About

Statistical, system-wide profiler

Commands

sysprofsysprof-cli

Examples

Start profiling system-wide and save results to a file$ sysprof-cli -o profile.sysprof -d 10
Profile a specific process by PID for 5 seconds$ sysprof-cli -p 1234 -d 5 -o result.sysprof
Open the GUI profiler to analyze system performance$ sysprof