Bug 977730 - Count total pages visited by all test users. r=bsmedberg.

This commit is contained in:
Asaf Romano 2014-04-01 11:27:03 +03:00
parent 5e4b9ee67b
commit 3cca728286
2 changed files with 9 additions and 2 deletions

View File

@ -3995,10 +3995,12 @@ var TabsProgressListener = {
// Collect telemetry data about tab load times.
if (aWebProgress.isTopLevel) {
if (aStateFlags & Ci.nsIWebProgressListener.STATE_IS_WINDOW) {
if (aStateFlags & Ci.nsIWebProgressListener.STATE_START)
if (aStateFlags & Ci.nsIWebProgressListener.STATE_START) {
TelemetryStopwatch.start("FX_PAGE_LOAD_MS", aBrowser);
else if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP)
Services.telemetry.getHistogramById("FX_TOTAL_TOP_VISITS").add(true);
} else if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP) {
TelemetryStopwatch.finish("FX_PAGE_LOAD_MS", aBrowser);
}
} else if (aStateFlags & Ci.nsIWebProgressListener.STATE_STOP &&
aStatus == Cr.NS_BINDING_ABORTED) {
TelemetryStopwatch.cancel("FX_PAGE_LOAD_MS", aBrowser);

View File

@ -3255,6 +3255,11 @@
"extended_statistics_ok": true,
"description": "Firefox: Time taken to load a page (ms)"
},
"FX_TOTAL_TOP_VISITS": {
"expires_in_version": "never",
"kind": "boolean",
"description": "Count the number of times a new top page was starting to load"
},
"FX_THUMBNAILS_CAPTURE_TIME_MS": {
"expires_in_version": "never",
"kind": "exponential",