replicant-frameworks_native/libs/binder
Jeff Brown 27a852b620 Improve the slow query instrumentation.
On user-debug and eng builds, you can set the
"db.log.slow_query_threshold" system property to queries that
take longer than the specified number of milliseconds.
Set it to 0 to log all queries.

This property has been around for a while but it was implemented
poorly.  In particular, it *changed* the behavior of the query
by calling getCount() while holding the Db connection.
In normal operation, the query will not actually run until later.

By putting the timing logic into fillWindow() instead, we ensure
that we only measure queries that actually ran.  We also capture
cases where the cursor window gets filled multiple times.

Bug: 5520301
Change-Id: I174f5e1ea15831a1d22a36e9a804d7755f230b38
2011-10-28 14:58:39 -07:00
..
Android.mk PermissionCache caches permission checks 2011-06-27 17:42:15 -07:00
Binder.cpp Make static versions of libutils and libbinder. 2010-05-06 01:03:31 -07:00
BpBinder.cpp
CursorWindow.cpp Improve the slow query instrumentation. 2011-10-28 14:58:39 -07:00
IInterface.cpp
IMemory.cpp MemoryHeapBase: Save and binderize the offset 2011-06-27 13:48:51 -07:00
IPCThreadState.cpp Resurrect verbose binder logging 2011-09-07 16:45:03 -07:00
IPermissionController.cpp Add Parcel::readExceptionCode() and Parcel::writeNoException() 2010-07-13 15:45:18 -07:00
IServiceManager.cpp Add Parcel::readExceptionCode() and Parcel::writeNoException() 2010-07-13 15:45:18 -07:00
MemoryBase.cpp
MemoryDealer.cpp Simplify the MemoryDealer implementation 2010-01-29 14:51:06 -08:00
MemoryHeapBase.cpp MemoryHeapBase: Save and binderize the offset 2011-06-27 13:48:51 -07:00
MemoryHeapPmem.cpp Clean up use of HAVE_ANDROID_OS 2011-02-16 10:56:32 -08:00
Parcel.cpp Use ashmem for CursorWindows. 2011-10-11 11:03:19 -07:00
PermissionCache.cpp PermissionCache caches permission checks 2011-06-27 17:42:15 -07:00
ProcessState.cpp Remove some #ifdef HAVE_ANDROID_OS that were needed for the simulator build 2011-07-13 19:45:44 -04:00
Static.cpp