This commit is contained in:
midoks
2023-08-25 16:55:44 +08:00
parent 3824b394ad
commit c3b3e3b01c
11 changed files with 155 additions and 90 deletions
@@ -0,0 +1,21 @@
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
curPath=`pwd`
rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
install_tmp=${rootPath}/tmp/mw_install.pl
SYS_ARCH=`arch`
# 关于macosx使用dtrace
# https://groups.google.com/g/openresty/c/MswlH_8DDHA
# http://dtrace.org/blogs/brendan/2012/11/14/dtracing-in-anger/
# dtrace -x ustackframes=100 -n 'pid$target::mach_msg_trap:entry { @[ustack()] = count(); } tick-30s { exit(0); }' -p 441 -o out.SystemUIServer_stacks
# ./FlameGraph/stackcollapse.pl out.SystemUIServer_stacks > kernel.cbt
# ./FlameGraph/flamegraph.pl kernel.cbt > kernel.svg