commit | 67b8c4953051cb14d0333856a057e5acba273d0e | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Thu Sep 21 17:08:43 2017 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Sep 21 17:11:07 2017 -0600 |
tree | 72788b409965f2ec1254436956d1dc5808c5e6f2 | |
parent | 49672b9351eb7e7f2bc655320aabd2fb6bd4c9d7 [diff] |
Make Loop::destroyAll() smarter. Instead of blindly looping across 4096 possible devices, use readdir() to only look at valid devices. This speeds up destroyAll() from 40ms to 0.7ms. Add tracing information in several places. Test: external/chromium-trace/systrace.py -b 128768 sched freq am pm ss core_services binder_driver -a system_server,installd,vold Bug: 65634729, 65737446 Change-Id: If581de47fb55850c0fcd6e25bf33ed246e1b079d