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

Commit a7f50d47 authored by Ng Zhi An's avatar Ng Zhi An
Browse files

Dump clock times in milliseconds granularity

This is useful for debugging broadcasts early during system boot as many
broadcasts are enqueued in the same second.

Bug: None
Test: dumpsys activity broadcasts
Change-Id: I2d00f04cef778d9a42fc94e246fafab0d2d8af58
parent c77b0202
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1668,7 +1668,7 @@ public final class BroadcastQueue {

    final boolean dumpLocked(FileDescriptor fd, PrintWriter pw, String[] args,
            int opti, boolean dumpAll, String dumpPackage, boolean needSep) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
        if (mParallelBroadcasts.size() > 0 || mOrderedBroadcasts.size() > 0
                || mPendingBroadcast != null) {
            boolean printed = false;