samply is a command line CPU profiler which uses the Firefox profiler as its UI.
samply works on macOS, Linux, and Windows.
In order to profile the execution of ./my-application, prepend samply record to the command invocation:
samply record ./my-application my-argumentsOn Linux, samply uses perf events. You can grant temporary access by running:
echo '-1' | sudo tee /proc/sys/kernel/perf_event_paranoidVisit the git repository for more information.