/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/lsprof.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import threading
13
13
from _lsprof import Profiler, profiler_entry
14
14
 
15
 
from brzlib import errors
 
15
from breezy import errors
16
16
 
17
17
__all__ = ['profile', 'Stats']
18
18
 
52
52
    This is needed because profiling involves global manipulation of the python
53
53
    interpreter state. As such you cannot perform multiple profiles at once.
54
54
    Trying to do so will lock out the second profiler unless the global 
55
 
    brzlib.lsprof.BzrProfiler.profiler_block is set to 0. Setting it to 0 will
 
55
    breezy.lsprof.BzrProfiler.profiler_block is set to 0. Setting it to 0 will
56
56
    cause profiling to fail rather than blocking.
57
57
    """
58
58
 
87
87
        This unhooks from threading and cleans up the profiler, returning
88
88
        the gathered Stats object.
89
89
 
90
 
        :return: A brzlib.lsprof.Stats object.
 
90
        :return: A breezy.lsprof.Stats object.
91
91
        """
92
92
        try:
93
93
            self.p.disable()