Skip to main content

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

NameTypeDescription
stateobjectThe current application or command state object passed by the inspector.
numint = 200Max number of objects to graph.
max_depthint = 10Traverse at most n levels deep.
typestr = RequestName of object to graph. Default is "Request".

Returns

TypeDescription
dictA dictionary containing the 'filename' key which points to the local file path of the generated PNG graph image.