SnapshotMergeReported: add retrofit and cow image size

Additional information are important to evaluate the impact of Virtual
A/B on devices especially related to OTA take rate.
Take rate is strictly related to the space that is temporarily allocated
in the /data partition (cow_file_size_bytes), as well as knowing if the
device has been upgraded to use Virtual A/B (is_vab_retrofit) or if the
feature was natively supported.
Add these new fields to the SnapshotMergeReported metric.

Bug: 154016862
Bug: 157720191
Test: m
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: Iae8310a8f5364ee94fc8ad6e55362d86cb0752d8
This commit is contained in:
Alessio Balsini
2020-05-26 11:11:20 +01:00
parent 825ad11167
commit 2294f39e2a

View File

@@ -4860,6 +4860,14 @@ message SnapshotMergeReported {
// Number of reboots that occurred after issuing and before completing the // Number of reboots that occurred after issuing and before completing the
// merge of all the snapshot devices. // merge of all the snapshot devices.
optional int32 intermediate_reboots = 3; optional int32 intermediate_reboots = 3;
// The device has been upgraded to Virtual A/B.
optional bool is_vab_retrofit = 4;
// Space that has been temporarily allocated in the /data partition
// containing the dm-snapshot's copy-on-write data generated during a
// Virtual A/B update.
optional int64 cow_file_size_bytes = 5;
} }
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////