我正在 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/