Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 445 Bytes

README.md

File metadata and controls

25 lines (14 loc) · 445 Bytes

strace-visualizing

安装strace:sudo apt install strace

安装b3:sudo npm i -g b3-strace-parser

npm install && npm run build

trash

strace -f -o output.txt <your_script.sh>

cat output.txt | b3 > output.json

这个json格式尚不正确,需要修正:

sed -i 's/$/,/' output.json
sed -i '1s/^/[ /' output.json
echo ] >> output.json

然后我们就得到了正确的json文件。