[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] python profiler with pyqt
From: "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date: 2004-11-18 17:11:12
Message-ID: 62307.82.68.80.137.1100797872.squirrel () 82 ! 68 ! 80 ! 137
[Download RAW message or body]
>
> [Solly]
>> Has anyone tried using the python profiler to profile a pyQt-based app?
>>
>> When I run it on my application it ignores all the qt function calls,
>> and
>> only profiles methods which I have defined myself.
>
> I don't use PyQt, but I suspect the reason is that the PyQt calls are
> implemented directly in C. The Python profiler only profiles functions
> that are implemented in Python.
>
> I have a recipe in the Python Cookbook here:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81535
>
> that lets you wrap a C module in a transparent Python wrapper, so that
> the profiler will work for it. Whether it's reasonable to attempt to do
> this for something as large as PyQt I don't know.
Python 2.4 supports profiling of C functions.
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic