diff --git a/.github/workflows/flamegraph_reporter.yaml b/.github/workflows/flamegraph_reporter.yaml index 63921cbe6a..281b995768 100644 --- a/.github/workflows/flamegraph_reporter.yaml +++ b/.github/workflows/flamegraph_reporter.yaml @@ -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 @@ -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 &&