From 2cd2648d4437fda0dc004a2b2a07b666e0eb7f4d Mon Sep 17 00:00:00 2001 From: Fo Lee Date: Mon, 6 Jul 2020 10:06:37 +0800 Subject: [PATCH] Add Camera profiler CamNode log In order to clarify and improve video jank problem, we plan to add some CamNode log into bugreport Bug: 158243741 Change-Id: Idb1cf97c321027cdc7651700d32fe0cb92ab016b --- dumpstate/DumpstateDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 0f0386c..704142c 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -724,6 +724,9 @@ Return DumpstateDevice::dumpstateBoard_1_1(const hidl_handle& h // Keep this at the end as very long on not for humans DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc"); + // Dump camera profiler log + RunCommandToFd(fd, "Camera Profiler Logs", {"/vendor/bin/sh", "-c", "for f in /data/vendor/camera/profiler/camx_*; do echo [$f]; cat \"$f\";done"}); + if (modemThreadHandle) { pthread_join(modemThreadHandle, NULL); }