Loading cmds/dumpstate/dumpstate.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,7 @@ void add_mountinfo(); #define PROFILE_DATA_DIR_CUR "/data/misc/profiles/cur" #define PROFILE_DATA_DIR_REF "/data/misc/profiles/ref" #define WLUTIL "/vendor/xbin/wlutil" #define WMTRACE_DATA_DIR "/data/misc/wmtrace" // TODO(narayan): Since this information has to be kept in sync // with tombstoned, we should just put it in a common header. Loading Loading @@ -1210,6 +1211,11 @@ static void dumpstate() { DumpFile("BINDER STATS", "/sys/kernel/debug/binder/stats"); DumpFile("BINDER STATE", "/sys/kernel/debug/binder/state"); /* Add window and surface trace files. */ if (!PropertiesHelper::IsUserBuild()) { ds.AddDir(WMTRACE_DATA_DIR, false); } ds.DumpstateBoard(); /* Migrate the ril_dumpstate to a device specific dumpstate? */ Loading services/surfaceflinger/SurfaceTracing.h +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ public: void traceLayers(const char* where, LayersProto); private: static constexpr auto DEFAULT_FILENAME = "/data/misc/trace/layerstrace.pb"; static constexpr auto DEFAULT_FILENAME = "/data/misc/wmtrace/layers_trace.pb"; status_t writeProtoFileLocked(); Loading Loading
cmds/dumpstate/dumpstate.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,7 @@ void add_mountinfo(); #define PROFILE_DATA_DIR_CUR "/data/misc/profiles/cur" #define PROFILE_DATA_DIR_REF "/data/misc/profiles/ref" #define WLUTIL "/vendor/xbin/wlutil" #define WMTRACE_DATA_DIR "/data/misc/wmtrace" // TODO(narayan): Since this information has to be kept in sync // with tombstoned, we should just put it in a common header. Loading Loading @@ -1210,6 +1211,11 @@ static void dumpstate() { DumpFile("BINDER STATS", "/sys/kernel/debug/binder/stats"); DumpFile("BINDER STATE", "/sys/kernel/debug/binder/state"); /* Add window and surface trace files. */ if (!PropertiesHelper::IsUserBuild()) { ds.AddDir(WMTRACE_DATA_DIR, false); } ds.DumpstateBoard(); /* Migrate the ril_dumpstate to a device specific dumpstate? */ Loading
services/surfaceflinger/SurfaceTracing.h +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ public: void traceLayers(const char* where, LayersProto); private: static constexpr auto DEFAULT_FILENAME = "/data/misc/trace/layerstrace.pb"; static constexpr auto DEFAULT_FILENAME = "/data/misc/wmtrace/layers_trace.pb"; status_t writeProtoFileLocked(); Loading