Entry:JS_DumpNamedRoots (Function) Summary: Enumerates the named roots in the garbage collection hash table. Syntax:
void JS_DumpNamedRoots(JSRuntime *rt,
void (*dump)(const char *name, void *rp, void *data),
void *data);
Argument Type Description rtJSRuntime * Pointer to a JSRuntime from which to dump named roots
dumpvoid * Pointer to function that actually dumps the named roots
datavoid * Pointer to a storage area into which to put a root's data.
Description: JS_DumpNamedRoots retrieves information from the garbage collection hash table about the named roots associated with a specific JSRuntime, rt.
data is a pointer to the storage structure into which to return retrieved information. If you pass a null pointer for this argument the JS engine defaults to using an internal storage structure for this information. If you write your own dump function, data must be the same as the last argument passed to the dump function.