Skip to content

Commit

Permalink
feat: add perf commands to justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
denehoffman committed Dec 6, 2024
1 parent 707eacf commit 3c27f69
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,5 @@ Cargo.lock
# Others
demos/
src/main.rs
*.perf.*
perf.*
14 changes: 14 additions & 0 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,17 @@ makedocs:

odoc:
firefox ./docs/build/html/index.html

clean:
cargo clean

profile:
RUSTFLAGS='-C force-frame-pointers=y' cargo build --profile perf
perf record -g target/perf/laddu
perf annotate -v --asm-raw --stdio
perf report -g graph,0.5,caller

popen:
mv firefox.perf.data firefox.perf.data.old
perf script --input=perf.data -F +pid > firefox.perf.data
firefox https://profiler.firefox.com
1 change: 1 addition & 0 deletions src/amplitudes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -782,3 +782,4 @@ mod tests {
assert!(manager.register(amp2).is_err());
}
}

0 comments on commit 3c27f69

Please sign in to comment.