From dbec9c7f393fc497ff14c6e06984a280671d109f Mon Sep 17 00:00:00 2001 From: Dylan Socolobsky Date: Fri, 6 Dec 2024 16:48:40 -0300 Subject: [PATCH] Fix local script "make flamegraph" --- .gitignore | 2 ++ Makefile | 3 ++- flamegraph.sh => scripts/flamegraph.sh | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename flamegraph.sh => scripts/flamegraph.sh (100%) 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