profiling all threads

  • Thread starter Alexander Hoffmann
  • Start date
A

Alexander Hoffmann

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,674
Latest member
scazeho

Latest Threads

Top