Skip to content

Commit

Permalink
Add flamegraph recipe (ordinals#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Sep 7, 2022
1 parent a4c5f01 commit 39116fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.idea/
/.vagrant
/flamegraph.svg
/index.lmdb
/index.redb
/ord.log
Expand Down
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,6 @@ download-log host="ordinals.com":

graph:
./bin/graph ord.log

flamegraph:
CARGO_PROFILE_RELEASE_DEBUG=true sudo cargo flamegraph -- index
1 change: 0 additions & 1 deletion src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ impl Index {

let txdata = block
.txdata
.as_slice()
.par_iter()
.map(|tx| (tx.txid(), tx))
.collect::<Vec<(Txid, &Transaction)>>();
Expand Down

0 comments on commit 39116fd

Please sign in to comment.