File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change 1
1
# samply
2
2
3
- ` samply ` is intended to become a command line CPU profiler for macOS, Linux and Windows .
3
+ samply is a command line CPU profiler which uses the [ Firefox profiler ] ( https://profiler.firefox.com/ ) as its UI .
4
4
5
- At the moment, the macOS implementation works best.
6
- The Linux implementation is extremely new and experimental.
7
- There is no Windows implementation yet.
5
+ samply works on macOS, Linux, and Windows.
8
6
9
- samply is a work in progress and not ready for public consumption, but you can give it a try if you'd like :
7
+ In order to profile the execution of ` ./my-application ` , prepend ` samply record ` to the command invocation :
10
8
9
+ ``` sh
10
+ samply record ./my-application my-arguments
11
11
```
12
- cargo install samply
13
12
14
- samply record ./yourcommand args # This profiles yourcommand and then opens the profile in a viewer.
13
+ On Linux, samply uses perf events. You can grant temporary access by running:
15
14
16
- # Alternatively:
17
- samply record --save-only -o prof.json -- ./yourcommand args
18
- samply load prof.json
19
-
20
- # You can also import Linux perf profiles:
21
- samply import perf.data
15
+ ``` sh
16
+ echo ' 1' | sudo tee /proc/sys/kernel/perf_event_paranoid
22
17
```
23
18
24
- See [ the repo] ( https://github.com/mstange/samply/ ) for more information.
25
-
26
- This project was formerly known as perfrecord.
19
+ Visit [ the git repository] ( https://github.com/mstange/samply/ ) for more information.
You can’t perform that action at this time.
0 commit comments