Mic*_*sai 6 python macos cocoa pyobjc
使用Activity Monitor/Instruments/Shark进行采样将显示Python解释器中充满C函数的堆栈跟踪.我会帮助您查看相应的Python符号名称.是否有一些可以做到这一点的DTrace魔法?Python的cProfile模块可用于分析Python调用的各个子树,但不是用于了解整个应用程序响应用户事件的情况.
wno*_*ise 2
答案是“dtrace”,但它无法在足够旧的 Mac 上运行。
http://tech.marshallfamily.com.au/archives/python-dtrace-on-os-x-leopard-part-1/
http://tech.marshallfamily.com.au/archives/python-dtrace-on-os-x-leopard-part-2/
归档时间:
16 年,11 月 前
查看次数:
324 次
最近记录:
13 年,8 月 前