lsprof records profile from sub threads, but does not save them.

Bug #579185 reported by Gary van der Merwe
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Gary van der Merwe

Bug Description

This can be observed by running the following testcase:

#!/usr/bin/env python
import bzrlib.lsprof
import threading

class thread (threading.Thread):
    def run(self):
        self.a()

    def a (self):
        print 'a'

p = bzrlib.lsprof.BzrProfiler()
p.start()
t = thread()
t.start()
t.join()
p.stop().save('test.callgrind')

I have started working on this, and have a patch that make callgrind work, but I need to get other formats work, and look at tests.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.