diff --git a/.gitignore b/.gitignore index 3076308ec..7cdd3a669 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,5 @@ loc_report_slack.txt loc_report_github.txt loc_report.json ethrex.redb + +flamegraph.svg diff --git a/Makefile b/Makefile index f292d94ee..cb9789b9b 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,8 @@ loc: cargo run -p loc flamegraph: - sudo -E CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin ethrex --features dev -- --network test_data/genesis-l2.json --http.port 1729 + sudo -E CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin ethrex --features dev -- --network test_data/genesis-l2.json --http.port 1729 & + bash scripts/flamegraph.sh test-load: ethrex_l2 test load --path ./test_data/private_keys.txt -i 1000 -v --value 10000000 --to 0xFCbaC0713ACf16708aB6BC977227041FA1BC618D diff --git a/flamegraph.sh b/scripts/flamegraph.sh similarity index 100% rename from flamegraph.sh rename to scripts/flamegraph.sh