Newsgroups: comp.lang.python
From: Thomas Jollans <t...@jollybox.de>
Date: Sat, 07 Jul 2012 11:50:05 +0200
Local: Sat, Jul 7 2012 5:50 am
Subject: Re: PyEval_SetProfile usage ?
On 07/06/2012 11:40 PM, Salman Malik wrote:
> Hi All,
You could have a look at the source code of the cProfile extension
> I have used the Python's C-API to call some Python code in my c code and
module. I assume it uses the feature. In your case, what's wrong with simply measuring the time?
/* variables. */
/* get start time */
/* DO PYTHON STUFF */
/* get end time */
/* delta? */
/* if your Python code is called multiple times, do this for each one,
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||