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

Commit fe1e0492 authored by Narayan Kamath's avatar Narayan Kamath Committed by android-build-merger
Browse files

dumpstate: Add historical ANRs as separate entries in the zip file. am: 8cbab7c3

am: c5883f66

Change-Id: If259c8a210bb5fce9dcf84c13b348724e911fbc2
parents 539d2561 c5883f66
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -930,8 +930,10 @@ static void AddAnrTraceDir(const bool add_to_zip, const std::string& anr_traces_
                 "VM TRACES AT LAST ANR", add_to_zip);

        if (anr_data->size() > 1) {
            // NOTE: Historical ANRs are always added as separate entries in the
            // bugreport zip file.
            AddDumps(anr_data->begin() + 1, anr_data->end(),
                     "HISTORICAL ANR", add_to_zip);
                     "HISTORICAL ANR", true /* add_to_zip */);
        }
    } else {
        printf("*** NO ANRs to dump in %s\n\n", ANR_DIR.c_str());