summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan Wang <yawanng@google.com>2020-05-21 22:05:22 +0000
committerYan Wang <yawanng@google.com>2020-05-21 22:11:03 +0000
commitc972cf29d2b4c9a08131f528c97bbdc6397786d5 (patch)
tree78f47599d440ebeeae10da821a3da97e72683a8f
parent8fb0f52466ab5d3b1ef1589311e91fbba8e60a81 (diff)
downloadiorap-c972cf29d2b4c9a08131f528c97bbdc6397786d5.tar.gz
event_manager: Reduce the min trace requirement to 1.
3 perfetto traces is little bit too strict. Reduce it to 1. We may have unlucky short trace if the app is not started correctly or etc. But this allows a quick kick-in of iorap for startup improvement. Bug: 157247543 Test: run with one trace. Change-Id: I326edf862531976521f7b5105c10b137fcc4db57
-rw-r--r--src/manager/event_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager/event_manager.cc b/src/manager/event_manager.cc
index 1618af8..02ed68c 100644
--- a/src/manager/event_manager.cc
+++ b/src/manager/event_manager.cc
@@ -1225,7 +1225,7 @@ class EventManager::Impl {
printer.printFormatLine("iorapd.readahead.enable = %s", s_readahead_allowed ? "true" : "false");
s_min_traces =
- ::android::base::GetUintProperty<uint64_t>("iorapd.maintenance.min_traces", /*default*/3);
+ ::android::base::GetUintProperty<uint64_t>("iorapd.maintenance.min_traces", /*default*/1);
uint64_t min_traces = s_min_traces;
printer.printFormatLine("iorapd.maintenance.min_traces = %" PRIu64, min_traces);