Bug 947812 - bracket log calls with #ifdef PR_LOGGING. r=heycam

This commit is contained in:
John Daggett 2013-12-12 09:28:40 +09:00
parent 5aada6624a
commit 6344fce7da

View File

@ -192,11 +192,13 @@ gfxPlatformFontList::InitOtherFamilyNames()
TimeStamp end = TimeStamp::Now();
Telemetry::AccumulateTimeDelta(Telemetry::FONTLIST_INITOTHERFAMILYNAMES,
start, end);
#ifdef PR_LOGGING
if (LOG_FONTINIT_ENABLED()) {
TimeDuration elapsed = end - start;
LOG_FONTINIT(("(fontinit) InitOtherFamilyNames took %8.2f ms",
elapsed.ToMilliseconds()));
}
#endif
}
PLDHashOperator
@ -222,11 +224,13 @@ gfxPlatformFontList::InitFaceNameLists()
TimeStamp end = TimeStamp::Now();
Telemetry::AccumulateTimeDelta(Telemetry::FONTLIST_INITFACENAMELISTS,
start, end);
#ifdef PR_LOGGING
if (LOG_FONTINIT_ENABLED()) {
TimeDuration elapsed = end - start;
LOG_FONTINIT(("(fontinit) InitFaceNameLists took %8.2f ms",
elapsed.ToMilliseconds()));
}
#endif
}
PLDHashOperator