#perf-events #kernel #proc #paranoid

app samply

A command line profiler for macOS and Linux

8 releases (5 breaking)

0.13.1 Feb 1, 2025
0.13.0 Feb 1, 2025
0.12.0 Apr 16, 2024
0.11.0 Jan 6, 2023
0.0.0 Jul 17, 2022

#205 in Database interfaces

Download history 957/week @ 2025-02-02 538/week @ 2025-02-09 722/week @ 2025-02-16 1150/week @ 2025-02-23 752/week @ 2025-03-02 514/week @ 2025-03-09 977/week @ 2025-03-16 710/week @ 2025-03-23 494/week @ 2025-03-30 863/week @ 2025-04-06 708/week @ 2025-04-13 1529/week @ 2025-04-20 902/week @ 2025-04-27 556/week @ 2025-05-04 551/week @ 2025-05-11 537/week @ 2025-05-18

2,571 downloads per month

MIT/Apache

1.5MB
28K SLoC

samply

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-arguments

On Linux, samply uses perf events. You can grant temporary access by running:

echo '1' | sudo tee /proc/sys/kernel/perf_event_paranoid

Visit the git repository for more information.

Dependencies

~55–100MB
~1.5M SLoC