Bug 1438872 - Document and test TelemetryEnvironment's e10sMultiProcesses. r=chutten
authorFelipe Gomes <felipc@gmail.com>
Tue, 16 Apr 2019 15:32:28 +0000
changeset 469702 3d5e46c5fd7c42120f755e0a3f327fbb01fb92a3
parent 469701 d245ef38503cc8d414a505131a53caaa4421e287
child 469703 f93f4060ac7d5cc374e0c8f63e5afc5b2b79d48b
push id83301
push userfgomes@mozilla.com
push dateTue, 16 Apr 2019 15:36:32 +0000
treeherderautoland@3d5e46c5fd7c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1438872 - Document and test TelemetryEnvironment's e10sMultiProcesses. r=chutten Differential Revision: https://phabricator.services.mozilla.com/D27584
--- a/toolkit/components/telemetry/docs/data/environment.rst
+++ b/toolkit/components/telemetry/docs/data/environment.rst
@@ -42,16 +42,17 @@ Structure:
           name: <string>, // engine name, e.g. "Yahoo"; or "NONE" if no default
           loadPath: <string>, // where the engine line is located; missing if no default
           origin: <string>, // 'default', 'verified', 'unverified', or 'invalid'; based on the presence and validity of the engine's loadPath verification hash.
           submissionURL: <string> // set for default engines or well known search domains
         searchCohort: <string>, // optional, contains an identifier for any active search A/B experiments
         launcherProcessState: <integer>, // optional, values correspond to values of mozilla::LauncherRegistryInfo::EnabledState enum
         e10sEnabled: <bool>, // whether e10s is on, i.e. browser tabs open by default in a different process
+        e10sMultiProcesses: <integer>, // Maximum number of processes that will be launched for regular web content
         telemetryEnabled: <bool>, // false on failure
         locale: <string>, // e.g. "it", null on failure
         intl: {
           requestedLocales: [ <string>, ... ], // The locales that are being requested.
           availableLocales: [ <string>, ... ], // The locales that are available for use.
           appLocales: [ <string>, ... ], // The negotiated locales that are being used.
           systemLocales: [ <string>, ... ], // The locales for the OS.
           regionalPrefsLocales: [ <string>, ... ], // The regional preferences for the OS.
--- a/toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
+++ b/toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
@@ -382,16 +382,17 @@ function checkBuildSection(data) {
   Assert.equal(data.build.updaterAvailable, AppConstants.MOZ_UPDATER,
                "build.updaterAvailable must equal AppConstants.MOZ_UPDATER");
 function checkSettingsSection(data) {
     blocklistEnabled: "boolean",
     e10sEnabled: "boolean",
+    e10sMultiProcesses: "number",
     intl: "object",
     locale: "string",
     telemetryEnabled: "boolean",
     update: "object",
     userPrefs: "object",
   Assert.ok("settings" in data, "There must be a settings section in Environment.");