MCPcopy Index your code
hub / github.com/RustPython/RustPython / debug_info

Method debug_info

Lib/multiprocessing/managers.py:340–354  ·  view source on GitHub ↗

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

(self, c)

Source from the content-addressed store, hash-verified

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

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