profiling all threads

Alexander Hoffmann alexander.hoffmann at netgenius.de
Mon Sep 6 10:28:15 EDT 2004


Hello,

I would like to profile a multi-threaded application with the profile module 
under Pyhton 2.3.4. 
Unfortunately the result only includes information about the main. 
This is how I invoke the profiler:
        import profile
        profile.run('main ()', 'data.prof')

and afterwards :

import pstats
p.sort_stats('name')
p.print_stats()

Am I doing something wrong ?

Thanks to all in advance !
Alex



More information about the Python-list mailing list