зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1520929 - part 2 - send isWowARM64 through telemetry; r=chutten,data-review=chutten
This commit is contained in:
Родитель
cb076fc90d
Коммит
06cc39db2f
|
@ -1832,6 +1832,7 @@ EnvironmentCache.prototype = {
|
||||||
|
|
||||||
if (AppConstants.platform === "win") {
|
if (AppConstants.platform === "win") {
|
||||||
data.isWow64 = getSysinfoProperty("isWow64", null);
|
data.isWow64 = getSysinfoProperty("isWow64", null);
|
||||||
|
data.isWowARM64 = getSysinfoProperty("isWowARM64", null);
|
||||||
} else if (AppConstants.platform == "android") {
|
} else if (AppConstants.platform == "android") {
|
||||||
data.device = this._getDeviceData();
|
data.device = this._getDeviceData();
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,7 @@ Structure:
|
||||||
memoryMB: <number>,
|
memoryMB: <number>,
|
||||||
virtualMaxMB: <number>, // windows-only
|
virtualMaxMB: <number>, // windows-only
|
||||||
isWow64: <bool>, // windows-only
|
isWow64: <bool>, // windows-only
|
||||||
|
isWowARM64: <bool>, // windows-only
|
||||||
cpu: {
|
cpu: {
|
||||||
count: <number>, // desktop only, e.g. 8, or null on failure - logical cpus
|
count: <number>, // desktop only, e.g. 8, or null on failure - logical cpus
|
||||||
cores: <number>, // desktop only, e.g., 4, or null on failure - physical cores
|
cores: <number>, // desktop only, e.g., 4, or null on failure - physical cores
|
||||||
|
|
|
@ -548,6 +548,8 @@ function checkSystemSection(data) {
|
||||||
if (gIsWindows) {
|
if (gIsWindows) {
|
||||||
Assert.equal(typeof data.system.isWow64, "boolean",
|
Assert.equal(typeof data.system.isWow64, "boolean",
|
||||||
"isWow64 must be available on Windows and have the correct type.");
|
"isWow64 must be available on Windows and have the correct type.");
|
||||||
|
Assert.equal(typeof data.system.isWowARM64, "boolean",
|
||||||
|
"isWowARM64 must be available on Windows and have the correct type.");
|
||||||
Assert.ok("virtualMaxMB" in data.system, "virtualMaxMB must be available.");
|
Assert.ok("virtualMaxMB" in data.system, "virtualMaxMB must be available.");
|
||||||
Assert.ok(Number.isFinite(data.system.virtualMaxMB),
|
Assert.ok(Number.isFinite(data.system.virtualMaxMB),
|
||||||
"virtualMaxMB must be a number.");
|
"virtualMaxMB must be a number.");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче