python - 编译 Python 时 --enable-profiling 选项有什么作用?

标签 python

我正在 Linux 中构建自己的 Python-2.6。配置中有一个选项可以启用 C 级代码分析。我以前从未使用过它;所以出于好奇,这个选项有什么作用?它有什么用?

最佳答案

谷歌告诉我这个:

Python can now be built with additional profiling for the interpreter itself, intended as an aid to people developing the Python core. Providing ---enable-profiling to the configure script will let you profile the interpreter with gprof

如果你不熟悉gprof,看看这个link

关于python - 编译 Python 时 --enable-profiling 选项有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6180985/

相关文章:

python - 使用 Python 连接到多播服务器

python - Pandas 在重复 DataFrame.reset_index() 上崩溃

python - 无法连接 'str' 和 'instance' 对象

python - 如何使用 Travis CI 测试 Pl/Python PostgreSQL 程序?

javascript - 在 Django 中的两个自定义标签之间传递变量

python - 取 3 列并使用 stack() 将其变为 2 列

Python线程发布

python - Python中的Tkinter OpenGL上下文

python - 使用 BeautifulSoup 抓取 ajax 网站

c# - 将字节作为参数传递给 c#?