diff options
| author | Jin Qian <jinqian@google.com> | 2017-01-20 20:41:14 -0800 |
|---|---|---|
| committer | Jin Qian <jinqian@google.com> | 2017-01-20 20:41:14 -0800 |
| commit | a1740cbaa4ba9dff6ec2e9045c08ba56edf8e492 (patch) | |
| tree | bd52b128d83520e924b28a9258d667fda15ca475 /storaged | |
| parent | 24c389a8bf62448ac6b3f9f99a336006786c7c36 (diff) | |
| download | system_core-a1740cbaa4ba9dff6ec2e9045c08ba56edf8e492.tar.gz system_core-a1740cbaa4ba9dff6ec2e9045c08ba56edf8e492.tar.bz2 system_core-a1740cbaa4ba9dff6ec2e9045c08ba56edf8e492.zip | |
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
Diffstat (limited to 'storaged')
| -rw-r--r-- | storaged/storaged.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |
