b.s.m._DebugCounter(object) : class documentation

Part of bzrlib.smart.medium View In Hierarchy

An object that counts the HPSS calls made to each client medium.

When a medium is garbage-collected, or failing that when bzrlib.global_state exits, the total number of calls made on that medium are reported via trace.note.

Method __init__ Undocumented
Method track Start tracking calls made to a medium.
Method increment_call_count Undocumented
Method done Undocumented
Method flush_all Undocumented
def __init__(self):
def track(self, medium):
Start tracking calls made to a medium.

This only keeps a weakref to the medium, so shouldn't affect the medium's lifetime.

def increment_call_count(self, params):
def done(self, ref):
def flush_all(self):
API Documentation for Bazaar, generated by pydoctor at 2020-07-08 00:56:46.