Add scripts for setting up benchmarks on linux

This commit is contained in:
Joakim Frostegård 2020-04-19 10:31:33 +02:00
parent f6ed47fec7
commit b77af78483
2 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/bin/bash
# Profile
perf record --call-graph=dwarf,16384 -e cpu-clock -F 997 target/release/aquatic
# Generate flamegraph (make sure nginx is installed for stdout path)
# Info: https://gist.github.com/dlaehnemann/df31787c41bd50c0fe223df07cf6eb89
perf script | stackcollapse-perf.pl | c++filt | flamegraph.pl > /var/www/html/flame.svg