Bug 683953 - Part 2 - Add a docShell's history ID to the debug output; r=jlebar

This commit is contained in:
Tim Taubert 2012-02-25 12:48:06 +01:00
parent 2cfabea640
commit 8310db6f57

View File

@ -785,7 +785,8 @@ nsDocShell::nsDocShell():
// We're counting the number of |nsDocShells| to help find leaks
++gNumberOfDocShells;
if (!PR_GetEnv("MOZ_QUIET")) {
printf("++DOCSHELL %p == %ld\n", (void*) this, gNumberOfDocShells);
printf("++DOCSHELL %p == %ld [id = %ld]\n", (void*) this,
gNumberOfDocShells, mHistoryID);
}
#endif
}
@ -813,7 +814,8 @@ nsDocShell::~nsDocShell()
// We're counting the number of |nsDocShells| to help find leaks
--gNumberOfDocShells;
if (!PR_GetEnv("MOZ_QUIET")) {
printf("--DOCSHELL %p == %ld\n", (void*) this, gNumberOfDocShells);
printf("--DOCSHELL %p == %ld [id = %ld]\n", (void*) this,
gNumberOfDocShells, mHistoryID);
}
#endif
}