#perf-events #samply #perf #proc #kernel

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

#110 in Profiling

Download history 162/week @ 2024-12-21 222/week @ 2024-12-28 613/week @ 2025-01-04 641/week @ 2025-01-11 408/week @ 2025-01-18 373/week @ 2025-01-25 1133/week @ 2025-02-01 549/week @ 2025-02-08 715/week @ 2025-02-15 1156/week @ 2025-02-22 765/week @ 2025-03-01 505/week @ 2025-03-08 977/week @ 2025-03-15 714/week @ 2025-03-22 488/week @ 2025-03-29 825/week @ 2025-04-05

3,046 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