#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

#116 in Profiling

Download history 221/week @ 2024-12-29 609/week @ 2025-01-05 648/week @ 2025-01-12 413/week @ 2025-01-19 567/week @ 2025-01-26 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 681/week @ 2025-04-13

2,772 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–105MB
~1.5M SLoC