Bug 1395914 - Update histogram with two new values for IPv6 network-id changes r=michal

Differential Revision: https://phabricator.services.mozilla.com/D34905

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Valentin Gosu 2019-06-28 11:42:14 +00:00
Родитель 18173f21d2
Коммит e19cd483fd
4 изменённых файлов: 17 добавлений и 17 удалений

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

@ -266,20 +266,20 @@ void nsNotifyAddrListener::calculateNetworkId(void) {
if (mNetworkId != output) {
// new id
if (found4 && !found6) {
Telemetry::Accumulate(Telemetry::NETWORK_ID, 1); // IPv4 only
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 1); // IPv4 only
} else if (!found4 && found6) {
Telemetry::Accumulate(Telemetry::NETWORK_ID, 3); // IPv6 only
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 3); // IPv6 only
} else {
Telemetry::Accumulate(Telemetry::NETWORK_ID, 4); // Both!
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 4); // Both!
}
mNetworkId = output;
} else {
// same id
Telemetry::Accumulate(Telemetry::NETWORK_ID, 2);
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 2);
}
} else {
// no id
Telemetry::Accumulate(Telemetry::NETWORK_ID, 0);
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 0);
}
}

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

@ -334,20 +334,20 @@ void nsNetworkLinkService::calculateNetworkId(void) {
if (mNetworkId != output) {
// new id
if (found4 && !found6) {
Telemetry::Accumulate(Telemetry::NETWORK_ID, 1); // IPv4 only
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 1); // IPv4 only
} else if (!found4 && found6) {
Telemetry::Accumulate(Telemetry::NETWORK_ID, 3); // IPv6 only
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 3); // IPv6 only
} else {
Telemetry::Accumulate(Telemetry::NETWORK_ID, 4); // Both!
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 4); // Both!
}
mNetworkId = output;
} else {
// same id
Telemetry::Accumulate(Telemetry::NETWORK_ID, 2);
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 2);
}
} else {
// no id
Telemetry::Accumulate(Telemetry::NETWORK_ID, 0);
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 0);
}
}

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

@ -212,11 +212,11 @@ bool nsNotifyAddrListener::findMac(char* gateway) {
LOG(("networkid: id %s\n", output.get()));
if (mNetworkId != output) {
// new id
Telemetry::Accumulate(Telemetry::NETWORK_ID, 1);
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 1);
mNetworkId = output;
} else {
// same id
Telemetry::Accumulate(Telemetry::NETWORK_ID, 2);
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 2);
}
found = true;
break;
@ -281,7 +281,7 @@ void nsNotifyAddrListener::calculateNetworkId(void) {
}
if (!found) {
// no id
Telemetry::Accumulate(Telemetry::NETWORK_ID, 0);
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 0);
}
}

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

@ -4832,14 +4832,14 @@
"n_buckets": 10,
"description": "Time spent (ms) during showdown deleting disk cache v2 for 'clear private data' option"
},
"NETWORK_ID": {
"record_in_processes": ["main", "content"],
"NETWORK_ID2": {
"record_in_processes": ["main"],
"alert_emails": ["necko@mozilla.com"],
"bug_numbers": [1240932],
"bug_numbers": [1240932, 1395914],
"expires_in_version": "never",
"kind": "enumerated",
"n_values": 6,
"description": "Network identification (0=None, 1=New, 2=Same)"
"description": "Network identification (0=None, 1=New Ipv4, 2=Same, 3=New IPv6, 4=New dual)"
},
"IDLE_NOTIFY_IDLE_MS": {
"record_in_processes": ["main", "content"],