File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
# docker run --privileged -it -v `pwd`:/code -w /code swiftlang/swift:nightly-5.2-bionic bash
17
17
18
18
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
20
20
21
21
echo 0 > /proc/sys/kernel/kptr_restrict
22
22
23
23
cd /usr/bin
24
24
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
26
26
cd -
27
27
28
28
cd /opt
42
42
#
43
43
# perf
44
44
# 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
46
46
# perf script -i .build/perf-$MAX_REQUESTS.data | /opt/FlameGraph/stackcollapse-perf.pl | swift-demangle | /opt/FlameGraph/flamegraph.pl > .build/flamegraph-$MAX_REQUESTS.svg
You can’t perform that action at this time.
0 commit comments