Skip to content

Commit

Permalink
fix: create ethrex_l2 config in flamegraph_reporter.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dsocolobsky committed Dec 2, 2024
1 parent 1ce321d commit 56dccda
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/flamegraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
account=0x33c6b73432B3aeA0C1725E415CC40D04908B85fd
end_val=$((172 * 1000 * 10000000))

echo "Running ethrex..."
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin ethrex --features dev -- --network test_data/genesis-l2.json --http.port 1729 &
echo "Sleeping 10s before running test..."
sleep 10
#echo "Running ethrex..."
#CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin ethrex --features dev -- --network test_data/genesis-l2.json --http.port 1729 &
#echo "Sleeping 10s before running test..."
#sleep 10
echo "Sending to account $account"
ethrex_l2 test load --path ./test_data/private_keys.txt -i 1000 -v --value 10000000 --to $account

Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/flamegraph_reporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,24 @@ jobs:
with:
toolchain: ${{ env.RUST_VERSION }}

- name: Caching
uses: Swatinem/rust-cache@v2

- name: Install flamegraph
run: cargo install flamegraph

- name: Install ethrex_l2 cli
run: cargo install --path cmd/ethrex_l2
run: |
cargo install --path cmd/ethrex_l2
ethrex_l2 config create default --default
ethrex_l2 config set default
- name: Caching
uses: Swatinem/rust-cache@v2
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Generate Flamegraph for Ethrex
shell: bash
run: |
sh .github/scripts/flamegraph.sh
CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin ethrex --features dev -- --network test_data/genesis-l2.json --http.port 1729 &
sleep 10 &&
bash .github/scripts/flamegraph.sh

0 comments on commit 56dccda

Please sign in to comment.