Attach the latest .cpa file collected due to a high drop rate to bugreports. am: 7284be3847 am: e81b17b142

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15244428

Change-Id: I137338577df86c9b3a3d69f71189b4b0e0c05874
This commit is contained in:
Michael Eastwood 2021-07-09 17:40:11 +00:00 committed by Automerger Merge Worker
commit a98eb9d8b6

View file

@ -210,7 +210,9 @@ void dumpCameraLogs(int fd, const std::string &destDir) {
const std::string cameraDestDir = destDir + "/camera"; const std::string cameraDestDir = destDir + "/camera";
RunCommandToFd(fd, "MKDIR CAMERA LOG", {"/vendor/bin/mkdir", "-p", cameraDestDir.c_str()}, RunCommandToFd(fd, "MKDIR CAMERA LOG", {"/vendor/bin/mkdir", "-p", cameraDestDir.c_str()},
CommandOptions::WithTimeout(2).Build()); CommandOptions::WithTimeout(2).Build());
dumpLogs(fd, kCameraLogDir, cameraDestDir, 1, "session-ended-"); // Attach 2 latest sessions (in case the user is running concurrent sessions).
dumpLogs(fd, kCameraLogDir, cameraDestDir, 2, "session-ended-");
dumpLogs(fd, kCameraLogDir, cameraDestDir, 2, "high-drop-rate-");
} }
timepoint_t startSection(int fd, const std::string &sectionName) { timepoint_t startSection(int fd, const std::string &sectionName) {