Removed sudo from perf requirements
authorJustin Worthe <justin@worthe-it.co.za>
Sat, 21 Jul 2018 18:31:41 +0000 (20:31 +0200)
committerJustin Worthe <justin@worthe-it.co.za>
Sat, 21 Jul 2018 18:31:41 +0000 (20:31 +0200)
I pushed the appropriate settings to my OS config

Makefile

index fa6e62b..8b630d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,8 +10,8 @@ bench:
 profile:
        cargo build --release --features "benchmarking single-threaded"
        mkdir -p target/profile
-       sudo perf record -F 1000 -a -g target/release/perf-test
-       sudo perf script > target/profile/out.perf
+       perf record -g target/release/perf-test
+       perf script > target/profile/out.perf
        ../FlameGraph/stackcollapse-perf.pl target/profile/out.perf > target/profile/out.folded
        ../FlameGraph/flamegraph.pl target/profile/out.folded > target/profile/flamegraph.svg