Bug 1220699 - Add telemetry probe to measure vsync latency in the parent refresh driver. r=avih

This commit is contained in:
Mason Chang 2015-11-02 13:21:06 -08:00
Родитель 38b78f20c9
Коммит 02d08f46c2
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -361,6 +361,11 @@ private:
if (XRE_IsParentProcess()) {
MonitorAutoLock lock(mRefreshTickLock);
#ifndef ANDROID /* bug 1142079 */
TimeDuration vsyncLatency = TimeStamp::Now() - aVsyncTimestamp;
Telemetry::Accumulate(Telemetry::FX_REFRESH_DRIVER_CHROME_FRAME_DELAY_MS,
vsyncLatency.ToMilliseconds());
#endif
aVsyncTimestamp = mRecentVsync;
mProcessedVsync = true;
}

Просмотреть файл

@ -4078,12 +4078,12 @@
"n_buckets": 30,
"description": "Average paint duration during any tab open/close animation (excluding tabstrip scroll) *** No longer needed (bug 1156565). Delete histogram and accumulation code! ***"
},
"FX_REFRESH_DRIVER_FRAME_DELAY_MS": {
"FX_REFRESH_DRIVER_CHROME_FRAME_DELAY_MS": {
"expires_in_version": "default",
"kind": "exponential",
"high": "10000",
"n_buckets": 50,
"description": "Delay in ms between the target and the actual handling time of the frame at refresh driver"
"description": "Delay in ms between the target and the actual handling time of the frame at refresh driver in chrome process."
},
"FX_TAB_SWITCH_UPDATE_MS": {
"alert_emails": ["perf-telemetry-alerts@mozilla.com"],