Bug 942063 - Telemetry for the size of sessionstore.js. r=smacleod

This commit is contained in:
David Rajchenbach-Teller 2013-11-26 14:44:42 -05:00
parent dd2ba78be2
commit ec59b7653a
2 changed files with 9 additions and 1 deletions

View File

@ -87,7 +87,8 @@ let Agent = {
return {
result: this.initialState,
telemetry: {FX_SESSION_RESTORE_READ_FILE_MS: durationMs}
telemetry: {FX_SESSION_RESTORE_READ_FILE_MS: durationMs,
FX_SESSION_RESTORE_FILE_SIZE_BYTES: bytes.byteLength}
};
} catch (ex if isNoSuchFileEx(ex)) {
// Ignore exceptions about non-existent files.

View File

@ -2831,6 +2831,13 @@
"extended_statistics_ok": true,
"description": "Session restore: Duration of the longest uninterruptible operation while writing session data (ms)"
},
"FX_SESSION_RESTORE_FILE_SIZE_BYTES": {
"kind": "exponential",
"high": 50000000,
"n_buckets": 30,
"extended_statistics_ok": true,
"description": "Session restore: The size of file sessionstore.js (bytes)"
},
"FX_SESSION_RESTORE_CORRUPT_FILE": {
"kind": "boolean",
"description": "Session restore: Whether the file read on startup contained parse-able JSON"