TimerThread: Add timeout analysis logic
Automatically dumps TimeCheck analysis if
there is an actionable blocked binder call.
Test: dedicated "crasher" test, check logcat
Test: adb shell dumpsys media.audio_flinger
Bug: 219958414
Change-Id: Ie21ef8940404fa7174938277bbf9c7aab2817ef7
diff --git a/media/utils/TimeCheck.cpp b/media/utils/TimeCheck.cpp
index d0dc9e1..3e35970 100644
--- a/media/utils/TimeCheck.cpp
+++ b/media/utils/TimeCheck.cpp
@@ -197,6 +197,7 @@
} else {
ALOGI("No HAL process pid available, skipping tombstones");
}
+
LOG_EVENT_STRING(LOGTAG_AUDIO_BINDER_TIMEOUT, tag.c_str());
LOG_ALWAYS_FATAL("TimeCheck timeout for %s scheduled %s on thread %d\n%s",
tag.c_str(), formatTime(startTime).c_str(), tid, summary.c_str());