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

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

Merge "Atom: BootSequenceReported"

parents ef64f658 6483ea4e
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -94,6 +94,7 @@ message Atom {
        LmkStateChanged lmk_state_changed = 54;
        AppStartMemoryStateCaptured app_start_memory_state_captured = 55;
        ShutdownSequenceReported shutdown_sequence_reported = 56;
        BootSequenceReported boot_sequence_reported = 57;
        // TODO: Reorder the numbering so that the most frequent occur events occur in the first 15.
    }

@@ -690,6 +691,35 @@ message ShutdownSequenceReported {
    optional int64 duration_ms = 4;
}


/**
 * Logs boot reason and duration.
 *
 * Logged from:
 *   system/core/bootstat/bootstat.cpp
 */
message BootSequenceReported {
    // Reason for bootloader boot. Eg. reboot. See bootstat.cpp for larger list
    // Default: "<EMPTY>" if not available.
    optional string bootloader_reason = 1;

    // Reason for system boot. Eg. bootloader, reboot,userrequested
    // Default: "<EMPTY>" if not available.
    optional string system_reason = 2;

    // End of boot time in ms from unix epoch using system wall clock.
    optional int64 end_time_ms = 3;

    // Total boot duration in ms.
    optional int64 total_duration_ms = 4;

    // Bootloader duration in ms.
    optional int64 bootloader_duration_ms = 5;

    // Time since last boot in ms. Default: 0 if not available.
    optional int64 time_since_last_boot = 6;
}

/**
 * Logs phone signal strength changes.
 *