
欢迎大家加入小编创建的Python行业交流群,有大牛答疑,有资源共享,有企业招人!是一个非常不错的交流基地!群号:683380553
Pyrasite是一个库和一组工具,用于将任意代码注入到运行的Python进程中。
要求:
GDB:GNU项目调试器
蟒蛇
Pyrasite适用于Python 2.4及更高版本。注入也可以在版本之间工作,因此您可以在Python 3下运行Pyrasite并注入2,反之亦然。
用法:pyrasite [-h] [--gdb-prefix GDB_PREFIX] [--verbose] pid [filename]pyrasite - 将代码注入正在运行的python进程中位置参数: pid要将代码注入的进程的ID filename第二个参数必须是文件名可选参数: -h, - help显示此帮助消息并退出 --gdb-prefix GDB_PREFIX GDB前缀(如果在安装期间指定) --verbose详细模式
Pyrasite-GUIPyrasite-GUI是Pyrasite的图形界面,可让您轻松监控,分析,内省和更改正在运行的Python程序。
要求:
Python debuginfo(实时对象检查所需)
PyGObject3 Introspection绑定
WebKitGTK3
meliae(easy_install / pip可能无法用于此安装。如果没有,请使用分发网站上的tarball。您可能需要安装Cython才能获得meliae)
pycallgraph
psutil




网友评论