#include <debug.h>
Static Public Methods | |
| void | SetupGraph (iObjectRegistry *object_reg) |
| Initialize the debugging graph. More... | |
| void | AddObject (iObjectRegistry *object_reg, void *object, bool scf, char *file, int linenr, char *description,...) |
| Add a new object to the debug graph and link to its parent. More... | |
| void | AttachDescription (iObjectRegistry *object_reg, void *object, char *description,...) |
| Attach a new description to an object in the graph. | |
| void | AttachType (iObjectRegistry *object_reg, void *object, char *type) |
| Attach a type to an object in the graph. | |
| void | RemoveObject (iObjectRegistry *object_reg, void *object, char *file, int linenr) |
| Remove an object from the debug tree. | |
| void | AddChild (iObjectRegistry *object_reg, void *parent, void *child) |
| Add a child to an object. | |
| void | AddParent (iObjectRegistry *object_reg, void *child, void *parent) |
| Add a parent to an object. | |
| void | RemoveChild (iObjectRegistry *object_reg, void *parent, void *child) |
| Unlink a child from its parent. | |
| void | RemoveParent (iObjectRegistry *object_reg, void *child, void *parent) |
| Unlink a parent from its child. | |
| void | Clear (iObjectRegistry *object_reg) |
| Completely clear everything in the debug graph. | |
| void | Dump (iObjectRegistry *object_reg) |
| Dump all the resulting graphs. | |
| void | Dump (iObjectRegistry *object_reg, void *object, bool reset_mark=true) |
| Dump the graph containing the given object. More... | |
It will register an object in the object registry that keeps track of allocations in a graph. Later on you can add/remove allocations from that graph.
|
|
Add a new object to the debug graph and link to its parent. If 'scf' is true 'object' is an iBase. |
|
|
Dump the graph containing the given object. You should usually leave reset_mark alone. That's for internal use. |
|
|
Initialize the debugging graph. Special note! In debug mode (CS_DEBUG) this function will put the pointer to the object registry in iSCF::object_reg. That way we can use this debugging functionality in places where the object registry is not available. |