b.t.ProfileResult(testtools.ExtendedToOriginalDecorator) : class documentation

Part of bzrlib.tests View In Hierarchy

Generate profiling data for all activity between start and success.

The profile data is appended to the test's _benchcalls attribute and can be accessed by the forwarded-to TestResult.

While it might be cleaner do accumulate this in stopTest, addSuccess is where our existing output support for lsprof is, and this class aims to fit in with that: while it could be moved it's not necessary to accomplish test profiling, nor would it be dramatically cleaner.

Method startTest Undocumented
Method addSuccess Undocumented
Method stopTest Undocumented
def startTest(self, test):
def addSuccess(self, test):
def stopTest(self, test):
API Documentation for Bazaar, generated by pydoctor at 2021-09-16 00:20:35.