Skip to content

Commit

Permalink
add flamegraph + update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Jul 8, 2024
1 parent e172d51 commit 4d659df
Show file tree
Hide file tree
Showing 2 changed files with 509 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ 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`:
```bash
cargo install flamegraph
```

then use this command to create one by running a transaction:
```bash
cargo flamegraph --root --dev -- <tx_hash> <network> <block_number - 1>
```

## Example

```bash
cargo flamegraph --root --dev -- 0x1b84bb4760a05c88ceab90a4fb9f37e2f518c822a655abe46361a61a88200fa mainnet 656535
```
Loading

0 comments on commit 4d659df

Please sign in to comment.