[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Profile gr python code using Oprofile and Kcacheg
From: |
Tom Rondeau |
Subject: |
Re: [Discuss-gnuradio] Profile gr python code using Oprofile and Kcachegrind |
Date: |
Sat, 1 Sep 2012 11:13:36 -0400 |
On Fri, Aug 31, 2012 at 7:10 AM, Christian Gagneraud <address@hidden> wrote:
> On 28/08/12 09:21, Qing Yang wrote:
>>
>> Hi everyone,
>>
>> Where can I find a concrete example on how to profile the gnuradio code
>> in Python?
>
>
> Hi,
>
> I've just read about timeit in an article, not sure if it fits your neeeds,
> but just in case:
> http://docs.python.org/library/timeit.html
>
> Chris
Chris,
That's a good tip. I've used it before and found it nice to time the
runtime of a flowgraph.
So Qing, if that's what you were talking about before, yes, something
like this is probably what you want to use to time the execution of a
block from the Python world. I might have been confused what you meant
by wanting to profile Python stuff.
Tom