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)
| 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 | |
| 426 | class Control: |