What does –enable-profiling option do when compiling Python?

Question:

I’m buildinng my own Python-2.6 in linux. There’s an option in configure for enabling C-level code profiling. I’ve never used that before; so just out of curiousity, what does that option do? what is it for?

Asked By: Noe Nieto

||

Answers:

Google tells me this:

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

If you are unfamiliar with gprof, have a look at this link

Answered By: Fredrik Pihl
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.