diff options
author | Adam Shih <adamshih@google.com> | 2023-03-20 11:09:26 +0800 |
---|---|---|
committer | Adam Shih <adamshih@google.com> | 2023-03-20 11:09:26 +0800 |
commit | b578bc8a0ea02c8d286b48ffe0ccb7a1dba2523d (patch) | |
tree | bdb5ad13a714dbcefd10be90f39f9fbc608c2606 /dumpstate | |
parent | 84e9cd60166d12f250eae6d28aacd3b0519fe8cc (diff) | |
download | gs201-b578bc8a0ea02c8d286b48ffe0ccb7a1dba2523d.tar.gz |
use gs-common camera dump
Bug: 273380509
Test: adb bugreport
Change-Id: I1312a62bd65ec8804bb967d98d1f231f6798b5c3
Diffstat (limited to 'dumpstate')
-rw-r--r-- | dumpstate/Dumpstate.cpp | 21 | ||||
-rw-r--r-- | dumpstate/Dumpstate.h | 1 |
2 files changed, 0 insertions, 22 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index 6869d2e..99d752c 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -198,7 +198,6 @@ Dumpstate::Dumpstate() }, mLogSections{ { "radio", [this](int fd, const std::string &destDir) { dumpRadioLogs(fd, destDir); } }, - { "camera", [this](int fd, const std::string &destDir) { dumpCameraLogs(fd, destDir); } }, { "gps", [this](int fd, const std::string &destDir) { dumpGpsLogs(fd, destDir); } }, { "gxp", [this](int fd, const std::string &destDir) { dumpGxpLogs(fd, destDir); } }, } { @@ -503,26 +502,6 @@ void Dumpstate::dumpGpsLogs(int fd, const std::string &destDir) { dumpLogs(fd, gpsLogDir, gpsDestDir, maxFileNum, GPS_LOG_PREFIX); } -void Dumpstate::dumpCameraLogs(int fd, const std::string &destDir) { - bool cameraLogsEnabled = ::android::base::GetBoolProperty( - "vendor.camera.debug.camera_performance_analyzer.attach_to_bugreport", true); - if (!cameraLogsEnabled) { - return; - } - - static const std::string kCameraLogDir = "/data/vendor/camera/profiler"; - const std::string cameraDestDir = destDir + "/camera"; - - RunCommandToFd(fd, "MKDIR CAMERA LOG", {"/vendor/bin/mkdir", "-p", cameraDestDir.c_str()}, - CommandOptions::WithTimeout(2).Build()); - // Attach multiple latest sessions (in case the user is running concurrent - // sessions or starts a new session after the one with performance issues). - dumpLogs(fd, kCameraLogDir, cameraDestDir, 10, "session-ended-"); - dumpLogs(fd, kCameraLogDir, cameraDestDir, 5, "high-drop-rate-"); - dumpLogs(fd, kCameraLogDir, cameraDestDir, 5, "watchdog-"); - dumpLogs(fd, kCameraLogDir, cameraDestDir, 5, "camera-ended-"); -} - void Dumpstate::dumpGxpLogs(int fd, const std::string &destDir) { bool gxpDumpEnabled = ::android::base::GetBoolProperty("vendor.gxp.attach_to_bugreport", false); diff --git a/dumpstate/Dumpstate.h b/dumpstate/Dumpstate.h index 6c34970..18d2b5a 100644 --- a/dumpstate/Dumpstate.h +++ b/dumpstate/Dumpstate.h @@ -60,7 +60,6 @@ class Dumpstate : public BnDumpstateDevice { // Log sections to be dumped individually into dumpstate_board.bin void dumpRadioLogs(int fd, const std::string &destDir); - void dumpCameraLogs(int fd, const std::string &destDir); void dumpGpsLogs(int fd, const std::string &destDir); void dumpGxpLogs(int fd, const std::string &destDir); |