Attach more CPA traces to bug reports. am: b9c47ce0dc am: 3df06659f1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15448666 Change-Id: Ic68ec7f2c45b85e4c03749463309002642abe567
This commit is contained in:
commit
5c51632a19
1 changed files with 4 additions and 3 deletions
|
@ -210,9 +210,10 @@ 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());
|
||||||
// Attach 2 latest sessions (in case the user is running concurrent sessions).
|
// Attach multiple latest sessions (in case the user is running concurrent
|
||||||
dumpLogs(fd, kCameraLogDir, cameraDestDir, 2, "session-ended-");
|
// sessions or starts a new session after the one with performance issues).
|
||||||
dumpLogs(fd, kCameraLogDir, cameraDestDir, 2, "high-drop-rate-");
|
dumpLogs(fd, kCameraLogDir, cameraDestDir, 10, "session-ended-");
|
||||||
|
dumpLogs(fd, kCameraLogDir, cameraDestDir, 5, "high-drop-rate-");
|
||||||
}
|
}
|
||||||
|
|
||||||
timepoint_t startSection(int fd, const std::string §ionName) {
|
timepoint_t startSection(int fd, const std::string §ionName) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue