Return some info --- useful to spot problems with refcounting
(self, c)
| 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 | ''' |