Skip to content

Commit 1685d89

Browse files
authored
update perf script (#51)
motivation: beter perf script changes: * adjust to latest version of perf * higher frequency sampling * more debug symbols
1 parent 6f71032 commit 1685d89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/linux_performance_setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
# docker run --privileged -it -v `pwd`:/code -w /code swiftlang/swift:nightly-5.2-bionic bash
1717

1818
apt-get update -y
19-
apt-get install -y vim htop strace linux-tools-common linux-tools-generic
19+
apt-get install -y vim htop strace linux-tools-common linux-tools-generic libc6-dbg
2020

2121
echo 0 > /proc/sys/kernel/kptr_restrict
2222

2323
cd /usr/bin
2424
rm -rf perf
25-
ln -s /usr/lib/linux-tools/4.15.0-88-generic/perf perf
25+
ln -s /usr/lib/linux-tools/4.15.0-91-generic/perf perf
2626
cd -
2727

2828
cd /opt
@@ -42,5 +42,5 @@ cd -
4242
#
4343
# perf
4444
# export MAX_REQUESTS=10000
45-
# perf record -o .build/perf-$MAX_REQUESTS.data -g .build/release/StringSample dwarf
45+
# perf record -o .build/perf-$MAX_REQUESTS.data -g -F 100000 .build/release/StringSample dwarf
4646
# perf script -i .build/perf-$MAX_REQUESTS.data | /opt/FlameGraph/stackcollapse-perf.pl | swift-demangle | /opt/FlameGraph/flamegraph.pl > .build/flamegraph-$MAX_REQUESTS.svg

0 commit comments

Comments
 (0)