From 9795c42e557cfa37b9fd353ef7a2a7977a77f504 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 26 Aug 2009 16:36:26 -0700 Subject: 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. --- libs/surfaceflinger/SurfaceFlinger.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/surfaceflinger/SurfaceFlinger.h') diff --git a/libs/surfaceflinger/SurfaceFlinger.h b/libs/surfaceflinger/SurfaceFlinger.h index 56ea97a4b5..69e2f2ebf3 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; -- cgit v1.2.3-59-g8ed1b