summaryrefslogtreecommitdiff
path: root/aosp/update_engine_client_android.cc
diff options
context:
space:
mode:
authorGabriele M <moto.falcon.git@gmail.com>2018-06-14 01:10:09 +0200
committeralk3pInjection <webmaster@raspii.tech>2023-12-27 00:35:28 +0800
commit3821b4eeb50bdf0faf99577dcb1c0e47978e5692 (patch)
tree76c39c4476df0c7ab3660541bb983267254cb12b /aosp/update_engine_client_android.cc
parentb52aa7706ec32556e3749284bc52f5de9ce595c7 (diff)
update_engine: Add performance modeumineko
Author: Gabriele M <moto.falcon.git@gmail.com> Date: Thu Jun 14 01:10:09 2018 +0200 update_engine: Add performance mode Allow to move update_engine from the system-background cgroup to the foreground cgroup to speed up the installation of the updates. Change-Id: Iaa531a925f9e1a26e834d7448c4755151adcfea2 Author: Luca Stefani <luca.stefani.ge1@gmail.com> Date: Mon Mar 4 14:57:28 2019 +0100 Move performance mode to top app Change-Id: I436102b4f8d046b8f3d897882613ec46acf9e2c5 luca020400: Move to TaskProfiles API Change-Id: Id7e27b0c42d80c4a3ce1dc7f8540313a7042db53
Diffstat (limited to 'aosp/update_engine_client_android.cc')
-rw-r--r--aosp/update_engine_client_android.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/aosp/update_engine_client_android.cc b/aosp/update_engine_client_android.cc
index c00e9f58..a3504099 100644
--- a/aosp/update_engine_client_android.cc
+++ b/aosp/update_engine_client_android.cc
@@ -169,6 +169,7 @@ int UpdateEngineClientAndroid::OnInit() {
false,
"Wait for previous update to merge. "
"Only available after rebooting to new slot.");
+ DEFINE_bool(perf_mode, false, "Enable perf mode.");
// Boilerplate init commands.
base::CommandLine::Init(argc_, argv_);
brillo::FlagHelper::Init(argc_, argv_, "Android Update Engine Client");
@@ -292,6 +293,10 @@ int UpdateEngineClientAndroid::OnInit() {
keep_running = true;
}
+ if (FLAGS_perf_mode) {
+ return ExitWhenIdle(service_->setPerformanceMode(true));
+ }
+
if (FLAGS_update) {
auto and_headers = ParseHeaders(FLAGS_headers);
Status status = service_->applyPayload(