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

Commit ad1d18f9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "dumpstate: dump iotop to show io threads"

parents 234250b8 3cd671e8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1135,7 +1135,7 @@ static void dumpstate() {
    RunCommand("VOLD DUMP", {"vdc", "dump"});
    RunCommand("SECURE CONTAINERS", {"vdc", "asec", "list"});

    RunCommand("STORAGED TASKIOINFO", {"storaged", "-u"}, CommandOptions::WithTimeout(10).Build());
    RunCommand("STORAGED UID IO INFO", {"storaged", "-u"});

    RunCommand("FILESYSTEMS & FREE SPACE", {"df"});

@@ -1850,6 +1850,9 @@ int main(int argc, char *argv[]) {
        RunCommand("DETAILED SOCKET STATE", {"ss", "-eionptu"},
                   CommandOptions::WithTimeout(10).Build());

        // Run iotop as root to show top 100 IO threads
        RunCommand("IOTOP", {"iotop", "-n", "1", "-m", "100"});

        if (!DropRootUser()) {
            return -1;
        }