Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

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?

like image 285
Noe Nieto Avatar asked Oct 12 '25 08:10

Noe Nieto


1 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

like image 74
Fredrik Pihl Avatar answered Oct 16 '25 11:10

Fredrik Pihl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!