519
520
def increment_call_count(self, params):
520
521
# Increment the count in the WeakKeyDictionary
521
522
value = self.counts[params.medium]
523
524
request_method = request.request_handlers.get(params.method)
524
525
if issubclass(request_method, vfs.VfsRequest):
530
532
# In case this callback is invoked for the same ref twice (by the
531
533
# weakref callback and by the atexit function), set the call count back
532
534
# to 0 so this item won't be reported twice.
535
538
trace.note('HPSS calls: %d (%d vfs) %s',
536
539
count, vfs_count, medium_repr)