Re: profiling in pyrex
Stefan Behnel <[email protected]> Wed, 01 Dec 2010 08:41:56 +0100
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
Mihai Badoiu wrote: > what is the best way to profile code written in pyrex? Cython has Python profiling support. You can compile a module with = profiling enabled, and it will trace function calls into cProfile, even = calls to cdef functions. http://docs.cython.org/src/tutorial/profiling_tutorial.html If you need more low-level profiling data, use valgrind's callgrind. It has = a great visualisation tool available that is called kcachegrind. Stefan