From a1740cbaa4ba9dff6ec2e9045c08ba56edf8e492 Mon Sep 17 00:00:00 2001 From: Jin Qian Date: Fri, 20 Jan 2017 20:41:14 -0800 Subject: [PATCH] storaged: disable taskio since it's too expensive It has no active user and will be replaced by uid io. |--99.99%-- storaged_t::event() | |--99.68%-- tasks_t::update_running_tasks() | | | |--93.00%-- parse_task_info(unsigned int, task_info*) | | | | |--49.94%-- android::base::ReadFileToString(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator >*, bool) | | | | |--29.00%-- read | | | | |--5.00%-- std::__1::basic_istream >::operator>>(unsigned long&) | | | | |--4.83%-- android::base::StringPrintf(char const*, ...) | | | | |--1.93%-- android::base::Split(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&) Bug: 34263766 Bug: 34198239 Change-Id: I3f4851b5ce27751eebd40f4b56e1ee24297c4c7d --- storaged/storaged.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storaged/storaged.cpp b/storaged/storaged.cpp index 8f7ce62c8..e4d3e686e 100644 --- a/storaged/storaged.cpp +++ b/storaged/storaged.cpp @@ -190,9 +190,11 @@ void storaged_t::event(void) { } } +#ifdef DEBUG if (mConfig.proc_taskio_readable) { mTasks.update_running_tasks(); } +#endif if (mConfig.emmc_available && mTimer && (mTimer % mConfig.periodic_chores_interval_emmc_info_publish) == 0) {