Skip to content
Commit 58815ea9 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Make shutdown logging thread-safe

Previously TRON_METRICS/SHUTDOWN_TIMINGS_LOG were accessed from
different threads. Now all access is properly synchronized.

Important: Moved saveMetrics from rebootOrShutdown. rebootOrShutdown
can be called directly from SystemServer class after reboot when
no metrics were collected.

Test: manual reboot/shutdown and verify that metrics are logged
Bug: 64815357
Change-Id: I7b02c9c6b10b920ce3532a0808ab71a0d6e07d2b
parent 25e5a344
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment