RE: PyEval_SetProfile usage ?

2012-07-07 Thread Salman Malik
nd by some reading I learned that it gives the CPU cycle's per function and not time. Any suggestions in this regard will also be very helpful.. Thanks! Salman > Date: Sat, 7 Jul 2012 11:50:05 +0200 > From: t...@jollybox.de > To: python-list@python.org > Subject: Re: PyEval_SetPro

Re: PyEval_SetProfile usage ?

2012-07-07 Thread Thomas Jollans
On 07/06/2012 11:40 PM, Salman Malik wrote: > Hi All, > > I have used the Python's C-API to call some Python code in my c code and > now I want to know how much time does my Python part of the program > takes. I came across the PyEval_SetProfile API and am not sure how to > use it. Do I need to wr