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