зеркало из https://github.com/mozilla/gecko-dev.git
Improved printouts so that addref/release tracing always shows the old/new refcnts in decimal instead of old in decimal and new in hex
This commit is contained in:
Родитель
5e6bf6fc1f
Коммит
3264d673a9
|
@ -399,10 +399,16 @@ char* typeFromLog[] = {
|
||||||
|
|
||||||
void leaky::dumpEntryToLog(malloc_log_entry* lep)
|
void leaky::dumpEntryToLog(malloc_log_entry* lep)
|
||||||
{
|
{
|
||||||
printf("%-10s %08lx %5ld %08lx (%ld)-->",
|
printf("%-10s %08lx %5ld ",
|
||||||
typeFromLog[lep->type],
|
typeFromLog[lep->type],
|
||||||
lep->address, lep->size, lep->oldaddress,
|
lep->address, lep->size);
|
||||||
lep->numpcs);
|
if (IsRefcnt(lep)) {
|
||||||
|
printf("%08ld", lep->oldaddress);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
printf("%08lx", lep->oldaddress);
|
||||||
|
}
|
||||||
|
printf(" (%ld)-->", lep->numpcs);
|
||||||
displayStackTrace(stdout, lep);
|
displayStackTrace(stdout, lep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче