diff options
author | Pale Moon <git-repo@palemoon.org> | 2015-03-21 09:34:02 +0100 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2015-03-21 09:34:02 +0100 |
commit | 00eba8adcdda96efcffcf76df476830cef8e2bc4 (patch) | |
tree | 7526ceb3098fa8098c02ec74eeb70e31c67c3ac1 /gfx | |
parent | e3afb8ad07f0c4415ec1f3c71ca191a066a7449e (diff) | |
download | palemoon-gre-00eba8adcdda96efcffcf76df476830cef8e2bc4.tar.gz |
Remove Telemetry part1: Autotimers, accumulator calls
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/layers/Layers.cpp | 2 | ||||
-rw-r--r-- | gfx/thebes/gfxDWriteFontList.cpp | 10 | ||||
-rw-r--r-- | gfx/thebes/gfxFont.cpp | 7 | ||||
-rw-r--r-- | gfx/thebes/gfxGDIFontList.cpp | 1 | ||||
-rw-r--r-- | gfx/thebes/gfxMacPlatformFontList.mm | 7 | ||||
-rw-r--r-- | gfx/thebes/gfxPlatformFontList.cpp | 15 |
6 files changed, 1 insertions, 41 deletions
diff --git a/gfx/layers/Layers.cpp b/gfx/layers/Layers.cpp index 482b0e4d3..5deb5f8b3 100644 --- a/gfx/layers/Layers.cpp +++ b/gfx/layers/Layers.cpp @@ -937,8 +937,6 @@ LayerManager::PostPresent() } } if (!mTabSwitchStart.IsNull()) { - Telemetry::Accumulate(Telemetry::FX_TAB_SWITCH_TOTAL_MS, - uint32_t((TimeStamp::Now() - mTabSwitchStart).ToMilliseconds())); mTabSwitchStart = TimeStamp(); } } diff --git a/gfx/thebes/gfxDWriteFontList.cpp b/gfx/thebes/gfxDWriteFontList.cpp index 8df648f22..ff3be04a1 100644 --- a/gfx/thebes/gfxDWriteFontList.cpp +++ b/gfx/thebes/gfxDWriteFontList.cpp @@ -796,13 +796,10 @@ gfxDWriteFontList::InitFontList() } elapsedTime = (t3.QuadPart - t1.QuadPart) * 1000.0 / frequency.QuadPart; - Telemetry::Accumulate(Telemetry::DWRITEFONT_INITFONTLIST_TOTAL, elapsedTime); LOG_FONTINIT(("Total time in InitFontList: %9.3f ms\n", elapsedTime)); elapsedTime = (t2.QuadPart - t1.QuadPart) * 1000.0 / frequency.QuadPart; - Telemetry::Accumulate(Telemetry::DWRITEFONT_INITFONTLIST_INIT, elapsedTime); LOG_FONTINIT((" --- gfxPlatformFontList init: %9.3f ms\n", elapsedTime)); elapsedTime = (t3.QuadPart - t2.QuadPart) * 1000.0 / frequency.QuadPart; - Telemetry::Accumulate(Telemetry::DWRITEFONT_INITFONTLIST_GDI, elapsedTime); LOG_FONTINIT((" --- GdiInterop object: %9.3f ms\n", elapsedTime)); return NS_OK; @@ -1042,21 +1039,15 @@ gfxDWriteFontList::DelayedInitFontList() } elapsedTime = (t3.QuadPart - t1.QuadPart) * 1000.0 / frequency.QuadPart; - Telemetry::Accumulate(Telemetry::DWRITEFONT_DELAYEDINITFONTLIST_TOTAL, elapsedTime); - Telemetry::Accumulate(Telemetry::DWRITEFONT_DELAYEDINITFONTLIST_COUNT, - systemFonts->GetFontFamilyCount()); - Telemetry::Accumulate(Telemetry::DWRITEFONT_DELAYEDINITFONTLIST_GDI_TABLE, mGDIFontTableAccess); LOG_FONTINIT(( "Total time in DelayedInitFontList: %9.3f ms (families: %d, %s)\n", elapsedTime, systemFonts->GetFontFamilyCount(), (mGDIFontTableAccess ? "gdi table access" : "dwrite table access"))); elapsedTime = (t2.QuadPart - t1.QuadPart) * 1000.0 / frequency.QuadPart; - Telemetry::Accumulate(Telemetry::DWRITEFONT_DELAYEDINITFONTLIST_COLLECT, elapsedTime); LOG_FONTINIT((" --- GetSystemFontCollection: %9.3f ms\n", elapsedTime)); elapsedTime = (t3.QuadPart - t2.QuadPart) * 1000.0 / frequency.QuadPart; - Telemetry::Accumulate(Telemetry::DWRITEFONT_DELAYEDINITFONTLIST_ITERATE, elapsedTime); LOG_FONTINIT((" --- iterate over families: %9.3f ms\n", elapsedTime)); return NS_OK; @@ -1422,7 +1413,6 @@ gfxDWriteFontList::GlobalFontFallback(const uint32_t aCh, *aMatchedFamily = family; return fontEntry; } - Telemetry::Accumulate(Telemetry::BAD_FALLBACK_FONT, true); } return nullptr; diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp index 022a94c0d..adafe6f66 100644 --- a/gfx/thebes/gfxFont.cpp +++ b/gfx/thebes/gfxFont.cpp @@ -1383,7 +1383,6 @@ gfxFontCache::Lookup(const gfxFontEntry *aFontEntry, Key key(aFontEntry, aStyle); HashEntry *entry = mFonts.GetEntry(key); - Telemetry::Accumulate(Telemetry::FONT_CACHE_HIT, entry != nullptr); if (!entry) return nullptr; @@ -2962,15 +2961,9 @@ gfxFont::GetShapedWord(gfxContext *aContext, if (sw) { sw->ResetAge(); - Telemetry::Accumulate((isContent ? Telemetry::WORD_CACHE_HITS_CONTENT : - Telemetry::WORD_CACHE_HITS_CHROME), - aLength); return sw; } - Telemetry::Accumulate((isContent ? Telemetry::WORD_CACHE_MISSES_CONTENT : - Telemetry::WORD_CACHE_MISSES_CHROME), - aLength); sw = entry->mShapedWord = gfxShapedWord::Create(aText, aLength, aRunScript, aAppUnitsPerDevUnit, diff --git a/gfx/thebes/gfxGDIFontList.cpp b/gfx/thebes/gfxGDIFontList.cpp index 2378b0e90..8142b02ab 100644 --- a/gfx/thebes/gfxGDIFontList.cpp +++ b/gfx/thebes/gfxGDIFontList.cpp @@ -681,7 +681,6 @@ gfxGDIFontList::GetFontSubstitutes() nsresult gfxGDIFontList::InitFontList() { - Telemetry::AutoTimer<Telemetry::GDI_INITFONTLIST_TOTAL> timer; gfxFontCache *fc = gfxFontCache::GetCache(); if (fc) fc->AgeAllGenerations(); diff --git a/gfx/thebes/gfxMacPlatformFontList.mm b/gfx/thebes/gfxMacPlatformFontList.mm index edd2b92a7..af9112e36 100644 --- a/gfx/thebes/gfxMacPlatformFontList.mm +++ b/gfx/thebes/gfxMacPlatformFontList.mm @@ -9,6 +9,7 @@ * Masayuki Nakano <masayuki@d-toybox.com> * John Daggett <jdaggett@mozilla.com> * Jonathan Kew <jfkthame@gmail.com> + * Mark Straver <moonchild@palemoon.org> * * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. * @@ -677,8 +678,6 @@ gfxMacPlatformFontList::InitFontList() if (mATSGeneration == currentGeneration) return NS_OK; - Telemetry::AutoTimer<Telemetry::MAC_INITFONTLIST_TOTAL> timer; - mATSGeneration = currentGeneration; #ifdef PR_LOGGING LOG_FONTLIST(("(fontlist) updating to generation: %d", mATSGeneration)); @@ -911,10 +910,6 @@ gfxMacPlatformFontList::GlobalFontFallback(const uint32_t aCh, } } - if (cantUseFallbackFont) { - Telemetry::Accumulate(Telemetry::BAD_FALLBACK_FONT, cantUseFallbackFont); - } - ::CFRelease(str); return fontEntry; diff --git a/gfx/thebes/gfxPlatformFontList.cpp b/gfx/thebes/gfxPlatformFontList.cpp index c95338102..9aef50b19 100644 --- a/gfx/thebes/gfxPlatformFontList.cpp +++ b/gfx/thebes/gfxPlatformFontList.cpp @@ -195,7 +195,6 @@ gfxPlatformFontList::InitOtherFamilyNames() { mOtherFamilyNamesInitialized = true; - Telemetry::AutoTimer<Telemetry::FONTLIST_INITOTHERFAMILYNAMES> timer; // iterate over all font families and read in other family names mFontFamilies.Enumerate(gfxPlatformFontList::InitOtherFamilyNamesProc, this); } @@ -216,7 +215,6 @@ gfxPlatformFontList::InitFaceNameLists() mFaceNamesInitialized = true; // iterate over all font families and read in other family names - Telemetry::AutoTimer<Telemetry::FONTLIST_INITFACENAMELISTS> timer; mFontFamilies.Enumerate(gfxPlatformFontList::InitFaceNameListsProc, this); } @@ -442,19 +440,6 @@ gfxPlatformFontList::SystemFindFontForChar(const uint32_t aCh, mReplacementCharFallbackFamily = fallbackFamily; } - // track system fallback time - static bool first = true; - int32_t intElapsed = int32_t(first ? elapsed.ToMilliseconds() : - elapsed.ToMicroseconds()); - Telemetry::Accumulate((first ? Telemetry::SYSTEM_FONT_FALLBACK_FIRST : - Telemetry::SYSTEM_FONT_FALLBACK), - intElapsed); - first = false; - - // track the script for which fallback occurred (incremented one make it - // 1-based) - Telemetry::Accumulate(Telemetry::SYSTEM_FONT_FALLBACK_SCRIPT, aRunScript + 1); - return fontEntry; } |