зеркало из https://github.com/mozilla/gecko-dev.git
Bug 846215 - separate content and chrome word cache metrics. r=taras
This commit is contained in:
Родитель
c0b65e4a8f
Коммит
bdf8f19da2
|
@ -2449,13 +2449,19 @@ gfxFont::GetShapedWord(gfxContext *aContext,
|
||||||
}
|
}
|
||||||
gfxShapedWord *sw = entry->mShapedWord;
|
gfxShapedWord *sw = entry->mShapedWord;
|
||||||
|
|
||||||
|
bool isContent = !mStyle.systemFont;
|
||||||
|
|
||||||
if (sw) {
|
if (sw) {
|
||||||
sw->ResetAge();
|
sw->ResetAge();
|
||||||
Telemetry::Accumulate(Telemetry::WORD_CACHE_HITS, aLength);
|
Telemetry::Accumulate((isContent ? Telemetry::WORD_CACHE_HITS_CONTENT :
|
||||||
|
Telemetry::WORD_CACHE_HITS_CHROME),
|
||||||
|
aLength);
|
||||||
return sw;
|
return sw;
|
||||||
}
|
}
|
||||||
|
|
||||||
Telemetry::Accumulate(Telemetry::WORD_CACHE_MISSES, aLength);
|
Telemetry::Accumulate((isContent ? Telemetry::WORD_CACHE_MISSES_CONTENT :
|
||||||
|
Telemetry::WORD_CACHE_MISSES_CHROME),
|
||||||
|
aLength);
|
||||||
sw = entry->mShapedWord = gfxShapedWord::Create(aText, aLength,
|
sw = entry->mShapedWord = gfxShapedWord::Create(aText, aLength,
|
||||||
aRunScript,
|
aRunScript,
|
||||||
aAppUnitsPerDevUnit,
|
aAppUnitsPerDevUnit,
|
||||||
|
|
|
@ -485,17 +485,29 @@
|
||||||
"kind": "flag",
|
"kind": "flag",
|
||||||
"description": "Was the disk startup cache file detected as invalid"
|
"description": "Was the disk startup cache file detected as invalid"
|
||||||
},
|
},
|
||||||
"WORD_CACHE_HITS": {
|
"WORD_CACHE_HITS_CONTENT": {
|
||||||
"kind": "exponential",
|
"kind": "exponential",
|
||||||
"high": "256",
|
"high": "256",
|
||||||
"n_buckets": 30,
|
"n_buckets": 30,
|
||||||
"description": "Word cache hits (chars)"
|
"description": "Word cache hits, content text (chars)"
|
||||||
},
|
},
|
||||||
"WORD_CACHE_MISSES": {
|
"WORD_CACHE_HITS_CHROME": {
|
||||||
"kind": "exponential",
|
"kind": "exponential",
|
||||||
"high": "256",
|
"high": "256",
|
||||||
"n_buckets": 30,
|
"n_buckets": 30,
|
||||||
"description": "Word cache misses (chars)"
|
"description": "Word cache hits, chrome text (chars)"
|
||||||
|
},
|
||||||
|
"WORD_CACHE_MISSES_CONTENT": {
|
||||||
|
"kind": "exponential",
|
||||||
|
"high": "256",
|
||||||
|
"n_buckets": 30,
|
||||||
|
"description": "Word cache misses, content text (chars)"
|
||||||
|
},
|
||||||
|
"WORD_CACHE_MISSES_CHROME": {
|
||||||
|
"kind": "exponential",
|
||||||
|
"high": "256",
|
||||||
|
"n_buckets": 30,
|
||||||
|
"description": "Word cache misses, chrome text (chars)"
|
||||||
},
|
},
|
||||||
"FONT_CACHE_HIT": {
|
"FONT_CACHE_HIT": {
|
||||||
"kind": "boolean",
|
"kind": "boolean",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче