You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,26 +3,24 @@
3
3
## Setup
4
4
5
5
1. Git clone
6
-
2. Make and activate virtualenv
7
-
3. Install from `requirements.txt`
8
-
4. Run `cd perfparser && maturin develop -r`
9
-
5. To fix perf debuginfo issues: `cargo install addr2line --features="bin"`
6
+
2. Install [`uv`](https://github.com/astral-sh/uv) if not already installed
7
+
3. To fix perf debuginfo issues: `cargo install addr2line --features="bin"`
10
8
11
9
## Basic usage
12
10
13
-
In one terminal, activate the virtualenv and run:
11
+
First, build your target program with optimizations on and debuginfo enabled, and then profile it with `perf` using something like the following:
14
12
15
13
```console
16
-
$ flask --app=accelerant_server run
14
+
$ perf record -F99 --call-graph dwarf ./your-program
17
15
```
18
16
19
-
In another terminal, build your program with optimizations on and debuginfo enabled, and then profile it with `perf` using something like the following:
17
+
Then, in the `accelerant` repository, run:
20
18
21
19
```console
22
-
$ perf record -F99 --call-graph dwarf ./your-program
0 commit comments