History log of /system/update_engine/metrics_reporter_android.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
82d99105d364fe38dc68733b631497040ad3dcfd 03-Nov-2017 Tianjie Xu <xunchang@google.com> Report download metrics for android

Report the metrics with libmetricslogger.
Tron varz added:
ota_update_engine_attempt_current_bytes_downloaded_mib
ota_update_engine_successful_update_total_bytes_downloaded_mib
ota_update_engine_successful_update_download_overhead_percentage

Test: build on sailfish
Change-Id: I4350c2030223d265a138aa07d2720413a5686d5a
/system/update_engine/metrics_reporter_android.h
52c678cddc5dd7bda8a29e74ce6ef4d67e8d1487 19-Oct-2017 Tianjie Xu <xunchang@google.com> Report more android update metrics in update engine

Report more metrics with android::metricslogger.
Metrics include:
ota_update_engine_attempt_number
ota_update_engine_attempt_result
ota_update_engine_attempt_duration_in_minutes
ota_update_engine_attempt_duration_uptime_in_minutes
ota_update_engine_attempt_payload_size_mib
ota_update_engine_attempt_payload_type

ota_update_engine_successful_update_attempt_count
ota_update_engine_successful_update_total_duration_in_minutes
ota_update_engine_successful_update_payload_size_mib
ota_update_engine_successful_update_payload_type
ota_update_engine_successful_update_reboot_count

And the google3 CL in cr/review/172829231

Bug: 30989466
Test: compile update_engine for marlin
Change-Id: Ic0ead07d1bd4a575244eb5e05588b47ba7b0bafe
/system/update_engine/metrics_reporter_android.h
1f93d098d6d6c341ed7471352fda80c936471a17 09-Oct-2017 Tianjie Xu <xunchang@google.com> Split the ReportUpdateAttemptMetrics into two functions

Move out the report download metrics into a new function so that
ReportUpdateAttemptMetrics has a reasonable number of parameters.
Create mocks for these two functions also.

Test: unittest pass
Change-Id: Ib9fc33d282a448c7e2d19bb7e7c06619efc2a278
/system/update_engine/metrics_reporter_android.h
1b66114d367d1b85b4397bb559e274dbd0ebcd31 28-Sep-2017 Tianjie Xu <xunchang@google.com> Implement the android metrics reporter

Implement the metrics_reporter_android class which reports with
libmetricslogger. We reports the error_code only for now, and more
android metrics will be reported in the following up cls.

Test: mma
Change-Id: Id5760aaa4853fa9ee0248344fa12900b923dfb7f
/system/update_engine/metrics_reporter_android.h