mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 40810 - warning message. Checking in for doronr@naboonline.com r=warren
This commit is contained in:
parent
d87da4da0e
commit
5946c0c8bf
@ -450,6 +450,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, FILE* out)
|
||||
nsresult rv = NS_OK;
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
if (gBloatLog == nsnull || gBloatView == nsnull) {
|
||||
fprintf(stdout, "Must define environmental variable " \
|
||||
"XPCOM_MEM_BLOAT_LOG\n");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
if (out == nsnull) {
|
||||
@ -485,7 +487,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, FILE* out)
|
||||
nsVoidArray entries;
|
||||
PL_HashTableEnumerateEntries(gBloatView, BloatEntry::DumpEntry, &entries);
|
||||
|
||||
printf("nsTraceRefcnt::DumpStatistics: %d entries\n", entries.Count());
|
||||
fprintf(stdout, "nsTraceRefcnt::DumpStatistics: %d entries\n",
|
||||
entries.Count());
|
||||
|
||||
// Sort the entries alphabetically by classname.
|
||||
PRInt32 i, j;
|
||||
|
@ -450,6 +450,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, FILE* out)
|
||||
nsresult rv = NS_OK;
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
if (gBloatLog == nsnull || gBloatView == nsnull) {
|
||||
fprintf(stdout, "Must define environmental variable " \
|
||||
"XPCOM_MEM_BLOAT_LOG\n");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
if (out == nsnull) {
|
||||
@ -485,7 +487,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, FILE* out)
|
||||
nsVoidArray entries;
|
||||
PL_HashTableEnumerateEntries(gBloatView, BloatEntry::DumpEntry, &entries);
|
||||
|
||||
printf("nsTraceRefcnt::DumpStatistics: %d entries\n", entries.Count());
|
||||
fprintf(stdout, "nsTraceRefcnt::DumpStatistics: %d entries\n",
|
||||
entries.Count());
|
||||
|
||||
// Sort the entries alphabetically by classname.
|
||||
PRInt32 i, j;
|
||||
|
Loading…
Reference in New Issue
Block a user