summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Su <dysu@google.com> 2019-02-20 17:42:28 -0800
committer David Su <dysu@google.com> 2019-02-25 15:05:01 -0800
commita04f505ece28b71f3fa8df1995a67d85033cb110 (patch)
tree5076ccf8a7e7b6025557f118a7082af72b291778
parenta984bb74b10f54ad7dae1964ef85c54fe014b4e2 (diff)
wifi.proto: Add fields for network selection metrics collection
Compare decisions made by different network selection algorithms. Bug: 112196799 Test: compiles Change-Id: Ia827a8fe050b834dd8da6c2b759ab092914a8bc9
-rw-r--r--proto/src/wifi.proto26
1 files changed, 26 insertions, 0 deletions
diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto
index 5fa7766ea510..0a51c1d54814 100644
--- a/proto/src/wifi.proto
+++ b/proto/src/wifi.proto
@@ -524,6 +524,9 @@ message WifiLog {
// Link Probe metrics
optional LinkProbeStats link_probe_stats = 139;
+
+ // List of NetworkSelectionExperimentDecisions stats for each experiment
+ repeated NetworkSelectionExperimentDecisions network_selection_experiment_decisions_list = 140;
}
// Information that gets logged for every WiFi connection.
@@ -2286,3 +2289,26 @@ message LinkProbeStats {
// Counts the occurrences of error codes for failed link probes.
repeated LinkProbeFailureReasonCount failure_reason_counts = 8;
}
+
+// Stores the decisions that were made by a experiment when compared against another experiment
+message NetworkSelectionExperimentDecisions {
+ // the id of one experiment
+ optional int32 experiment1_id = 1;
+
+ // the id of the other experiment
+ optional int32 experiment2_id = 2;
+
+ // Counts occurrences of the number of network choices there were when experiment1 makes the
+ // same network selection as experiment2.
+ // The keys are the number of network choices, and the values are the number of occurrences of
+ // this number of network choices when exp1 and exp2 make the same network selection.
+ repeated MapEntryInt32Int32 same_selection_num_choices_counter = 3;
+
+ // Counts occurrences of the number of network choices there were when experiment1 makes the
+ // same network selection as experiment2.
+ // The keys are the number of network choices, and the values are the number of occurrences of
+ // this number of network choices when exp1 and exp2 make different network selections.
+ // Note that it is possible for the network selection to be different even when there only exists
+ // a single network choice, since choosing not to connect to that network is a valid choice.
+ repeated MapEntryInt32Int32 different_selection_num_choices_counter = 4;
+}