MCPcopy Create free account
hub / github.com/celery/celery / objgraph

Method objgraph

celery/app/control.py:409–423  ·  view source on GitHub ↗

Create graph of uncollected objects (memory-leak debugging). Arguments: n (int): Max number of objects to graph. max_depth (int): Traverse at most n levels deep. type (str): Name of object to graph. Default is ``"Request"``. Returns:

(self, type='Request', n=200, max_depth=10)

Source from the content-addressed store, hash-verified

407 return self._request('memdump', samples=samples)
408
409 def objgraph(self, type='Request', n=200, max_depth=10):
410 """Create graph of uncollected objects (memory-leak debugging).
411
412 Arguments:
413 n (int): Max number of objects to graph.
414 max_depth (int): Traverse at most n levels deep.
415 type (str): Name of object to graph. Default is ``"Request"``.
416
417 Returns:
418 Dict: Dictionary ``{'filename': FILENAME}``
419
420 Note:
421 Requires the objgraph library.
422 """
423 return self._request('objgraph', num=n, max_depth=max_depth, type=type)
424
425
426class Control:

Callers 1

test_objgraphMethod · 0.80

Calls 1

_requestMethod · 0.95

Tested by 1

test_objgraphMethod · 0.64