python -m trace -t <py file> python -m dis <py file>
strace -p pid # 用系统命令跟踪系统调用
Python - 调试Python代码的方法
原文:https://www.cnblogs.com/anliven/p/9998722.html