objgraph
Create graph of uncollected objects (memory-leak debugging).
def objgraph(
state: object,
num: int = 200,
max_depth: int = 10,
type: str = Request
) - > dict
Create graph of uncollected objects (memory-leak debugging).
Parameters
| Name | Type | Description |
|---|---|---|
| state | object | The current application or command state object passed by the inspector. |
| num | int = 200 | Max number of objects to graph. |
| max_depth | int = 10 | Traverse at most n levels deep. |
| type | str = Request | Name of object to graph. Default is "Request". |
Returns
| Type | Description |
|---|---|
dict | A dictionary containing the 'filename' key which points to the local file path of the generated PNG graph image. |