MCPcopy Index your code
hub / github.com/python/cpython / debug_info

Method debug_info

Lib/multiprocessing/managers.py:341–355  ·  view source on GitHub ↗

Return some info --- useful to spot problems with refcounting

(self, c)

Source from the content-addressed store, hash-verified

339 pass
340
341 def debug_info(self, c):
342 '''
343 Return some info --- useful to spot problems with refcounting
344 '''
345 # Perhaps include debug info about 'c'?
346 with self.mutex:
347 result = []
348 keys = list(self.id_to_refcount.keys())
349 keys.sort()
350 for ident in keys:
351 if ident != '0':
352 result.append(' %s: refcount=%s\n %s' %
353 (ident, self.id_to_refcount[ident],
354 str(self.id_to_obj[ident][0])[:75]))
355 return '\n'.join(result)
356
357 def number_of_objects(self, c):
358 '''

Callers

nothing calls this directly

Calls 6

listClass · 0.85
strFunction · 0.85
keysMethod · 0.45
sortMethod · 0.45
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected