diff options
| author | 2023-02-01 13:00:05 -0800 | |
|---|---|---|
| committer | 2023-03-16 23:35:42 +0000 | |
| commit | b9e7f3dd8798e45e9da08d6f78801ac03fcd8e3d (patch) | |
| tree | f0de723fa33efdad8ec7571646960c937ce180de /libs/androidfw/FileStream.cpp | |
| parent | 17a7c61a4353901e07523efa46c327f5e3d00e4e (diff) | |
Start/Stop CPU monitoring based on the client callback addition/removal.
- Start CPU monitoring when the first client callback is added.
- Stop CPU monitoring when the last client callback is removed.
- When on client callbacks are available, perform debug monitoring only
user-debug and eng builds.
- When a client callback is added, notify the client of the latest CPU
availability and the current monitoring interval.
Test: atest CpuMonitorServiceTest
Bug: 242722241
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5182a35f25e43edd5e979432ad76bbde989c8a1d)
Merged-In: I6d423ee165ad6e0623f6078e3c68cc4fd1871371
Change-Id: I6d423ee165ad6e0623f6078e3c68cc4fd1871371
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions