summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/ExSurfaceFlinger/ExSurfaceFlinger.h
diff options
context:
space:
mode:
authorDileep Marchya <dmarchya@codeaurora.org>2015-12-03 14:39:35 -0800
committerSteve Kondik <steve@cyngn.com>2016-03-13 03:28:46 -0700
commita9cbaf5097c089372cf152401007d70bcb13a95d (patch)
treec1c3fc0de430c031e261efbb9e5212ea8e9ae571 /services/surfaceflinger/ExSurfaceFlinger/ExSurfaceFlinger.h
parent0e898965c31abd6a861c0af3223f0759b1a4ef6d (diff)
downloadframeworks_native-a9cbaf5097c089372cf152401007d70bcb13a95d.zip
frameworks_native-a9cbaf5097c089372cf152401007d70bcb13a95d.tar.gz
frameworks_native-a9cbaf5097c089372cf152401007d70bcb13a95d.tar.bz2
SurfaceFlinger: Add support for continuous dumpsys to file.
- Collect dumpsys to an outfile file when triggered. - Collect dumpsys before calling Prepare on hwc module in each draw cycle. Recollect dumpsys if Commit goes through successfully and replace former dumpsys with this. - Wrap around if file size reaches appx 20 MB. - Generate output file at /data/misc/display/dumpsys.txt - Syntax: adb shell dumpsys SurfaceFlinger --file [--no-limit] --file : Ouput dumpsys to file --no-limit : Do not wrap around, keep appending Use same command to trigger start and end of dumping. - Output format: | start code | after commit? | time stamp | dump size | dump data | CRs-Fixed: 947084 Change-Id: Ie520f51c69757aeec88b9400688a7f3271472349
Diffstat (limited to 'services/surfaceflinger/ExSurfaceFlinger/ExSurfaceFlinger.h')
-rw-r--r--services/surfaceflinger/ExSurfaceFlinger/ExSurfaceFlinger.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/services/surfaceflinger/ExSurfaceFlinger/ExSurfaceFlinger.h b/services/surfaceflinger/ExSurfaceFlinger/ExSurfaceFlinger.h
index 628fac7..068f2b9 100644
--- a/services/surfaceflinger/ExSurfaceFlinger/ExSurfaceFlinger.h
+++ b/services/surfaceflinger/ExSurfaceFlinger/ExSurfaceFlinger.h
@@ -79,6 +79,20 @@ protected:
bool mDebugLogs;
bool isDebug() { return mDebugLogs; }
bool mDisableExtAnimation;
+
+#ifdef DEBUG_CONT_DUMPSYS
+ virtual status_t dump(int fd, const Vector<String16>& args);
+ virtual void dumpDrawCycle(bool prePrepare );
+
+ struct {
+ Mutex lock;
+ const char *name = "/data/misc/display/dumpsys.txt";
+ bool running = false;
+ bool noLimit = false;
+ bool replaceAfterCommit = false;
+ long int position = 0;
+ } mFileDump;
+#endif
};
}; //namespace android