OSDN Git Service

Use THREAD_CPUTIME to measure sensor activation time
authorViorel Suman <viorel.suman@intel.com>
Tue, 21 Jul 2015 06:26:29 +0000 (09:26 +0300)
committerbuildslave <sys_buildbot@intel.com>
Tue, 21 Jul 2015 19:01:32 +0000 (19:01 +0000)
commit77c428093ef5a6bd6d97b8e49ca4416151ec8298
tree40e54d0edf9142f5e9bc559c21b8d52323a999a3
parent3c542917ef9f37acc05142e56d81829314714e28
Use THREAD_CPUTIME to measure sensor activation time

CLOCK_BOOTTIME measures the overall time spend by
CPU on all processes while invoking the sensor activation.
In a multi-process multi-threaded environment this
creates the misperception that sensor activation
takes too long when resuming from suspended state.
Use CLOCK_THREAD_CPUTIME_ID instead of CLOCK_BOOTTIME
in order to measure the time spent by CPU on sensor
activation thread exclusively.

Change-Id: I362d76c8976cb566962c03b294462a6d6a0f69e7
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-12362
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Reviewed-on: https://android.intel.com:443/391994
entry.c
utils.c
utils.h