Loading core/java/android/util/BootTimingsTraceLog.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -52,12 +52,11 @@ public class BootTimingsTraceLog { if (!DEBUG_BOOT_TIME) { if (!DEBUG_BOOT_TIME) { return; return; } } // Pop the top element without throwing NoSuchElementException if (mStartTimes.peek() == null) { Pair<String, Long> event = mStartTimes.pollFirst(); if (event == null) { Slog.w(mTag, "traceEnd called more times than traceBegin"); Slog.w(mTag, "traceEnd called more times than traceBegin"); return; return; } } Pair<String, Long> event = mStartTimes.pop(); // Log the duration so it can be parsed by external tools for performance reporting // Log the duration so it can be parsed by external tools for performance reporting Slog.d(mTag, event.first + " took to complete: " Slog.d(mTag, event.first + " took to complete: " + (SystemClock.elapsedRealtime() - event.second) + "ms"); + (SystemClock.elapsedRealtime() - event.second) + "ms"); Loading Loading
core/java/android/util/BootTimingsTraceLog.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -52,12 +52,11 @@ public class BootTimingsTraceLog { if (!DEBUG_BOOT_TIME) { if (!DEBUG_BOOT_TIME) { return; return; } } // Pop the top element without throwing NoSuchElementException if (mStartTimes.peek() == null) { Pair<String, Long> event = mStartTimes.pollFirst(); if (event == null) { Slog.w(mTag, "traceEnd called more times than traceBegin"); Slog.w(mTag, "traceEnd called more times than traceBegin"); return; return; } } Pair<String, Long> event = mStartTimes.pop(); // Log the duration so it can be parsed by external tools for performance reporting // Log the duration so it can be parsed by external tools for performance reporting Slog.d(mTag, event.first + " took to complete: " Slog.d(mTag, event.first + " took to complete: " + (SystemClock.elapsedRealtime() - event.second) + "ms"); + (SystemClock.elapsedRealtime() - event.second) + "ms"); Loading