summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/SurfaceFlinger.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-08-26 16:36:26 -0700
committerMathias Agopian <mathias@google.com>2009-08-26 16:55:50 -0700
commita8d49178f94e025be8be00460739315b9c273e4c (patch)
tree7ccc645e6f9acb14a1e92b6d6163b641fe72937b /libs/surfaceflinger/SurfaceFlinger.h
parentb89c9d422781d10c614af61b1519daed2b9086e2 (diff)
downloadframeworks_base-a8d49178f94e025be8be00460739315b9c273e4c.zip
frameworks_base-a8d49178f94e025be8be00460739315b9c273e4c.tar.gz
frameworks_base-a8d49178f94e025be8be00460739315b9c273e4c.tar.bz2
dumpsys SurfaceFlinger will now always dump SF's state, even if SF is deadlocked
(in this case the state is dumped without the proper locks held which could result to a crash) in addition, the last transaction and swap times are printed to the dump as well as the time spent *currently* in these function. For instance, if SF is unresponsive because eglSwapBuffers() is stuck, this will show up here.
Diffstat (limited to 'libs/surfaceflinger/SurfaceFlinger.h')
-rw-r--r--libs/surfaceflinger/SurfaceFlinger.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/surfaceflinger/SurfaceFlinger.h b/libs/surfaceflinger/SurfaceFlinger.h
index 56ea97a..69e2f2e 100644
--- a/libs/surfaceflinger/SurfaceFlinger.h
+++ b/libs/surfaceflinger/SurfaceFlinger.h
@@ -348,6 +348,10 @@ private:
// don't use a lock for these, we don't care
int mDebugRegion;
int mDebugBackground;
+ volatile nsecs_t mDebugInSwapBuffers;
+ nsecs_t mLastSwapBufferTime;
+ volatile nsecs_t mDebugInTransaction;
+ nsecs_t mLastTransactionTime;
// these are thread safe
mutable Barrier mReadyToRunBarrier;