-
Committer:
Tarmac
-
Author(s):
Daniel van Vugt
-
Date:
2014-07-21 06:27:11 UTC
-
mfrom:
(1774.3.4 nolog)
-
Revision ID:
tarmac-20140721062711-ll1uissnm8zcoxi7
Stop Android logging from consuming significant CPU (on every input event).
(LP: #1343074)
Two things needed fixing:
1. Verbose logging (ALOGV) is meant to be disabled (optimized out) unless
debugging, but it wasn't ever being removed. This means expensive calls
to ALOGV remained, for example in EventHub.cpp on every input event.
2. Our own Mir version of __android_log_print was extremely inefficient,
formatting log messages unconditionally even when they did not meet the
reporting threshold and were never used.
. Fixes: https://bugs.launchpad.net/bugs/1343074.
Approved by PS Jenkins bot, Daniel d'Andrada, Kevin DuBois, Alan Griffiths.