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

Commit c6877d6a authored by Andy Hung's avatar Andy Hung
Browse files

AudioFlinger: dumpsys of audio mutexes held

Test: adb shell dumpsys media.audio_flinger
Bug: 209491695
Change-Id: Ie133b88a9137e2af1b38c16a6c23fdadfb367988
parent fba891da
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -880,6 +880,10 @@ NO_THREAD_SAFETY_ANALYSIS // conditional try lock
        // dump mutex stats
        // dump mutex stats
        const auto mutexStats = audio_utils::mutex::all_stats_to_string();
        const auto mutexStats = audio_utils::mutex::all_stats_to_string();
        write(fd, mutexStats.c_str(), mutexStats.size());
        write(fd, mutexStats.c_str(), mutexStats.size());

        // dump held mutexes
        const auto mutexThreadInfo = audio_utils::mutex::all_threads_to_string();
        write(fd, mutexThreadInfo.c_str(), mutexThreadInfo.size());
    }
    }
    return NO_ERROR;
    return NO_ERROR;
}
}