RE: PyEval_SetProfile usage ?

2012-07-07 Thread Salman Malik
, 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 write my own profiling

PyEval_SetProfile usage ?

2012-07-06 Thread Salman Malik
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 write my own profiling function? Any pointer to

Using pdb with greenlet?

2012-06-12 Thread Salman Malik
Hi, I am sort of a newbie to Python ( have just started to use pdb). My problem is that I am debugging an application that uses greenlets and when I encounter something in code that spawns the coroutines or wait for an event, I lose control over the application (I mean that after that point