commit | 4ca5bdf2073a10d966b2e0c402f75af6cdbf3b29 | [log] [tgz] |
---|---|---|
author | Patrick Monette <pmonette@chromium.org> | Wed May 25 15:05:00 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 25 15:05:00 2022 |
tree | 230e8ea12d5544866cb9d47c159f1588cb800f92 | |
parent | 2d1087b1dcb8711f2cfac05fe422bd472dab455a [diff] |
Always instantiate PowerMetricsReporter (except on Android) PowerMetricsReporter was recently refactored to work even on platforms without a BatteryLevelProvider implementation (where CPU metrics are still reported, but battery metrics are skipped). It can thus now always be instantiated. Android is excluded because child CPU usage is not available on that platform. For that same reason, this CL also changes ProcessMetricsRecorder to be excluded from Android platforms instead of recording bogus values. This means that ProcessMonitor, which is only used by those 2 classes, is also moved behind the Android conditional. Bug: 1320817 Change-Id: Ia3ab383339a87256c5c6db83fac8fe87b067b48d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3642577 Reviewed-by: Francois Pierre Doray <fdoray@chromium.org> Reviewed-by: Mark Pearson <mpearson@chromium.org> Commit-Queue: Patrick Monette <pmonette@chromium.org> Cr-Commit-Position: refs/heads/main@{#1007381}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.