Loading services/audioflinger/Android.mk +3 −1 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ LOCAL_SRC_FILES:= \ LOCAL_C_INCLUDES := \ $(TOPDIR)frameworks/av/services/audiopolicy \ $(TOPDIR)external/sonic \ libcore/include \ $(call include-path-for, audio-effects) \ $(call include-path-for, audio-utils) Loading @@ -54,7 +55,8 @@ LOCAL_SHARED_LIBRARIES := \ libpowermanager \ libserviceutility \ libsonic \ libmediautils libmediautils \ libmemunreachable LOCAL_STATIC_LIBRARIES := \ libcpustats \ Loading services/audioflinger/AudioFlinger.cpp +16 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ #include <utils/Log.h> #include <utils/Trace.h> #include <binder/Parcel.h> #include <memunreachable/memunreachable.h> #include <utils/String16.h> #include <utils/threads.h> #include <utils/Atomic.h> Loading Loading @@ -462,6 +463,21 @@ status_t AudioFlinger::dump(int fd, const Vector<String16>& args) binder->dump(fd, args); } } // check for optional arguments bool unreachableMemory = false; for (const auto &arg : args) { if (arg == String16("--unreachable")) { unreachableMemory = true; } } if (unreachableMemory) { dprintf(fd, "\nDumping unreachable memory:\n"); // TODO - should limit be an argument parameter? std::string s = GetUnreachableMemoryString(true /* contents */, 10000 /* limit */); write(fd, s.c_str(), s.size()); } } return NO_ERROR; } Loading Loading
services/audioflinger/Android.mk +3 −1 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ LOCAL_SRC_FILES:= \ LOCAL_C_INCLUDES := \ $(TOPDIR)frameworks/av/services/audiopolicy \ $(TOPDIR)external/sonic \ libcore/include \ $(call include-path-for, audio-effects) \ $(call include-path-for, audio-utils) Loading @@ -54,7 +55,8 @@ LOCAL_SHARED_LIBRARIES := \ libpowermanager \ libserviceutility \ libsonic \ libmediautils libmediautils \ libmemunreachable LOCAL_STATIC_LIBRARIES := \ libcpustats \ Loading
services/audioflinger/AudioFlinger.cpp +16 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ #include <utils/Log.h> #include <utils/Trace.h> #include <binder/Parcel.h> #include <memunreachable/memunreachable.h> #include <utils/String16.h> #include <utils/threads.h> #include <utils/Atomic.h> Loading Loading @@ -462,6 +463,21 @@ status_t AudioFlinger::dump(int fd, const Vector<String16>& args) binder->dump(fd, args); } } // check for optional arguments bool unreachableMemory = false; for (const auto &arg : args) { if (arg == String16("--unreachable")) { unreachableMemory = true; } } if (unreachableMemory) { dprintf(fd, "\nDumping unreachable memory:\n"); // TODO - should limit be an argument parameter? std::string s = GetUnreachableMemoryString(true /* contents */, 10000 /* limit */); write(fd, s.c_str(), s.size()); } } return NO_ERROR; } Loading