diff --git a/README.md b/README.md index f740767..3b20f62 100644 --- a/README.md +++ b/README.md @@ -92,3 +92,15 @@ As an example, to show only error messages from the replay crate, run: ```bash RUST_LOG=replay=error cargo run block mainnet 648461 ``` + +### Flamegraph + +In order to create a flamegraph you first need to install [cargo-flamegraph](https://github.com/killercup/cargo-flamegraph): +```bash +cargo install flamegraph +``` + +To produce a flamegraph of a transaction execution run: +```bash +cargo flamegraph --root --dev -- tx 0x1b84bb4760a05c88ceab90a4fb9f37e2f518c822a655abe46361a61a88200fa mainnet 656535 +```