summaryrefslogtreecommitdiff
path: root/opengl/java/android/opengl/Texture.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-10-27 21:24:54 -0700
committerJeff Brown <jeffbrown@google.com>2011-10-28 14:58:39 -0700
commit89101cd9d9b5c1a6ff1ed85eba0613ca4c4802e2 (patch)
treef155cc2da9ab892b29262bc6b161c2bf51f34988 /opengl/java/android/opengl/Texture.java
parentc43b9b6d97ed6dc40e181843aa79159c504e7004 (diff)
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
Diffstat (limited to 'opengl/java/android/opengl/Texture.java')
0 files changed, 0 insertions, 0 deletions