File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 13
13
# #
14
14
# #===----------------------------------------------------------------------===##
15
15
16
- # docker run --cap-add SYS_ADMIN -it -v `pwd`:/code -w /code swift:5.1 bash
16
+ # docker run --privileged -it -v `pwd`:/code -w /code swift:5.1 bash
17
17
18
- apt-get update
18
+ apt-get update -y
19
19
apt-get install -y vim htop strace linux-tools-common linux-tools-generic
20
20
21
+ echo 0 > /proc/sys/kernel/kptr_restrict
22
+
21
23
cd /usr/bin
22
24
rm -rf perf
23
25
ln -s /usr/lib/linux-tools/4.15.0-88-generic/perf perf
24
26
cd -
25
27
26
- cd build
28
+ cd /opt
27
29
git clone https://github.com/brendangregg/FlameGraph.git
28
30
cd -
29
31
40
42
#
41
43
# perf
42
44
# export MAX_REQUESTS=10000
43
- # perf record -o .build/perf-$MAX_REQUESTS.data -g .build/release/SwiftAwsLambdaStringSample dward
44
- # perf script -i .build/perf-$MAX_REQUESTS.data | .build/ FlameGraph/stackcollapse-perf.pl | swift-demangle | .build /FlameGraph/flamegraph.pl > .build/flamegraph-$MAX_REQUESTS.svg
45
+ # perf record -o .build/perf-$MAX_REQUESTS.data -g .build/release/SwiftAwsLambdaStringSample dwarf
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