Skip to content

Commit

Permalink
Use addr2line for faster perf usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dsocolobsky committed Dec 3, 2024
1 parent d3679ec commit 3a0a366
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/flamegraph_reporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
cargo install flamegraph
cargo install inferno
- name: Build addr2line
run: |
cargo install addr2line --features bin --bin addr2line
sudo cp /root/.cargo/bin/addr2line /usr/local/bin/addr2line
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

Expand All @@ -51,6 +57,7 @@ jobs:
- name: Generate Flamegraph data for Ethrex
shell: bash
run: |
export PATH=${HOME}/addr2line/target/release:$PATH
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph -c "record -o perf.data -F997 --call-graph dwarf,16384 -g" --bin ethrex --features dev -- --network test_data/genesis-l2.json --http.port 1729 &
echo "waiting to execute load test..."
sleep 30 &&
Expand Down

0 comments on commit 3a0a366

Please sign in to comment.