Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71a0e057 authored by Rucha Katakwar's avatar Rucha Katakwar
Browse files

Camera: Add timestamp associated with the dump.

Bug: 205851172

Test: Tested collecting dumpsys on Pixel 6 device.
Change-Id: I8d61cca23bc915a9adaecfcf82e6d1d8ece8f718
parent a6a90507
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4450,7 +4450,8 @@ status_t CameraService::dump(int fd, const Vector<String16>& args) {
void CameraService::dumpOpenSessionClientLogs(int fd,
        const Vector<String16>& args, const String8& cameraId) {
    auto clientDescriptor = mActiveClientManager.get(cameraId);
    dprintf(fd, "  Device %s is open. Client instance dump:\n",
    dprintf(fd, "  %s : Device %s is open. Client instance dump:\n",
            getFormattedCurrentTime().string(),
            cameraId.string());
    dprintf(fd, "    Client priority score: %d state: %d\n",
        clientDescriptor->getPriority().getScore(),