зеркало из https://github.com/mozilla/pjs.git
Add temporary debugging code to dump entire JS heap at shutdown to debug bug 538462.
This commit is contained in:
Родитель
6e04c483bb
Коммит
fb289dd405
|
@ -153,6 +153,14 @@ nsXPConnect::~nsXPConnect()
|
|||
mRuntime->SystemIsBeingShutDown(cx);
|
||||
|
||||
JS_EndRequest(cx);
|
||||
|
||||
// Temporary code to debug a persistent leak on tinderbox
|
||||
// unit tests (bug 538462).
|
||||
#if defined(DEBUG_cltbld) && defined(XP_MACOSX)
|
||||
printf("Dump of entire JS heap at shutdown:\n");
|
||||
JS_DumpHeap(cx, stdout, nsnull, 0, nsnull, size_t(-1), nsnull);
|
||||
#endif
|
||||
|
||||
JS_DestroyContext(cx);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче