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

Commit a5c5e8a9 authored by Yi Jin's avatar Yi Jin
Browse files

Enable Diskstats Section

Bug: 67019205
Test: manually tested in incident_report tool
Change-Id: I291d4b0b0c01385e57c6ad83a12678c0f8d8746b
parent 2cdfd189
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -179,8 +179,8 @@ Reporter::runReport()
            // Execute - go get the data and write it into the file descriptors.
            err = (*section)->Execute(&batch);
            if (err != NO_ERROR) {
                ALOGW("Incident section %s (%d) failed. Stopping report.",
                        (*section)->name.string(), id);
                ALOGW("Incident section %s (%d) failed: %s. Stopping report.",
                        (*section)->name.string(), id, strerror(-err));
                goto DONE;
            }

+7 −1
Original line number Diff line number Diff line
@@ -78,11 +78,17 @@ message IncidentProto {
        (section).type = SECTION_DUMPSYS,
        (section).args = "notification --proto"
    ];

    android.service.battery.BatteryServiceDumpProto battery = 3006 [
        (section).type = SECTION_DUMPSYS,
        (section).args = "battery --proto"
    ];
    android.service.diskstats.DiskStatsServiceDumpProto diskstats = 3007;

    android.service.diskstats.DiskStatsServiceDumpProto diskstats = 3007 [
        (section).type = SECTION_DUMPSYS,
        (section).args = "diskstats --proto"
    ];

    android.service.pm.PackageServiceDumpProto package = 3008;
    android.service.power.PowerServiceDumpProto power = 3009;
    android.service.print.PrintServiceDumpProto print = 3010;