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<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, bool)
| | | | |--29.00%-- read
| | | | |--5.00%-- std::__1::basic_istream<char, std::__1::char_traits<char> >::operator>>(unsigned long&)
| | | | |--4.83%-- android::base::StringPrintf(char const*, ...)
| | | | |--1.93%-- android::base::Split(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
Bug: 34263766
Bug: 34198239
Change-Id: I3f4851b5ce27751eebd40f4b56e1ee24297c4c7d
diff --git a/storaged/storaged.cpp b/storaged/storaged.cpp
index 8f7ce62..e4d3e68 100644
--- a/storaged/storaged.cpp
+++ b/storaged/storaged.cpp
@@ -190,9 +190,11 @@
}
}
+#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) {