-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
30 lines (24 loc) · 1.13 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# ---------------------- General helpers that should work for everyone ---------------------- #
# build and run rust benchmarks
bench-rust:
cargo bench -p factrs-bench
# build and run cpp benchmarks
bench-cpp:
cmake -B build factrs-bench/cpp
cmake --build build
./build/bench
# profile the g2o example using flamegraph
profile:
cargo flamegraph --profile profile --example g2o -- ./examples/data/parking-garage.g2o
# build docs with latex support
doc:
RUSTDOCFLAGS="--cfg docsrs --html-in-header $PWD/assets/katex-header.html" cargo doc --features="serde rerun" -Zunstable-options -Zrustdoc-scrape-examples
bacon-doc:
RUSTDOCFLAGS="--cfg docsrs --html-in-header $PWD/assets/katex-header.html" bacon doc --features="serde rerun" -- -Zunstable-options -Zrustdoc-scrape-examples
# ---------------------- Easton specific helpers that work on my system ---------------------- #
# tune the system for benchmarking using pyperf
perf-tune:
sudo ~/.local/share/uv/tools/pyperf/bin/pyperf system tune
# reset the system after benchmarking using pyperf
perf-reset:
sudo ~/.local/share/uv/tools/pyperf/bin/pyperf system reset