Skip to content

Commit

Permalink
test: [#746] profiling: add configuration to generate flamegraphs
Browse files Browse the repository at this point in the history
You can generate a flamegprah with:

```
TORRUST_TRACKER_PATH_CONFIG="./share/default/config/tracker.udp.benchmarking.toml" cargo flamegraph --bin=profiling -- 60
```
  • Loading branch information
josecelano committed Mar 21, 2024
1 parent 47c2fe2 commit bfdeafc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
/target
/tracker.*
/tracker.toml
callgrind.out
callgrind.out
flamegraph.svg
perf.data*
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@ opt-level = 1
debug = 1
lto = "fat"
opt-level = 3

[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Clink-arg=-Wl,--no-rosegment"]
1 change: 1 addition & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"rerequests",
"ringbuf",
"rngs",
"rosegment",
"routable",
"rusqlite",
"RUSTDOCFLAGS",
Expand Down

0 comments on commit bfdeafc

Please sign in to comment.