当前位置:网站首页>SWT / anr problem - how to open binder trace (bindertraces) when sending anr / SWT
SWT / anr problem - how to open binder trace (bindertraces) when sending anr / SWT
2022-07-01 13:58:00 【Professional developer】
Problem description :
Due to binding transactions , We often encounter some system watchdog ( or ANR) problem . here , After getting the binder trace log , It is very helpful for us to analyze problems .
In this document , Let's introduce how the watchdog happens ( or ANR) Enable binding tracing (BinderTraces) journal .
Solution :
1. When ANR occurs , The file named “BinderTraces_pid__.txt”
2. Happen when WATCHDOG when , The file name is “BinderTraces_pid_.txt”
3. Patches:
1) diff --git a/services/core/java/com/android/server/Watchdog.java
b/services/core/java/com/android/server/Watchdog.java
index c04c2ac..0f58746 100644
--- a/services/core/java/com/android/server/Watchdog.java
+++ b/services/core/java/com/android/server/Watchdog.java
@@ -515,7 +515,7 @@ public class Watchdog extends Thread {
//Collect Binder State logs to get status of all the transactions
if (Build.IS_DEBUGGABLE) { //Note: the "ro.debuggable" system property must be set to
"1", then the binder trace log will be enabled
- binderStateRead();
+ binderStateRead(String.valueOf(Process.myPi
边栏推荐
- 3.4 《数据库系统概论》之数据查询—SELECT(单表查询、连接查询、嵌套查询、集合查询、多表查询)
- TexStudio使用教程
- Machine learning summary (I): linear regression, ridge regression, Lasso regression
- 【Flask】Flask启程与实现一个基于Flask的最小应用程序
- Scheme of printing statistical information in log
- [241. Design priority for operation expression]
- 微机原理与接口技术知识点整理复习–纯手打
- Explain IO multiplexing, select, poll, epoll in detail
- Sign APK with command line
- 2022 · 让我带你Jetpack架构组件从入门到精通 — Lifecycle
猜你喜欢
随机推荐
【NLP】预训练模型——GPT1
AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集
How to pass array parameters in get request
After being laid off for three months, the interview ran into a wall everywhere, and the mentality has begun to collapse
Arthas use
逻辑是个好东西
建立自己的网站(21)
C language ordering management system
Fiori 应用通过 Adaptation Project 的增强方式分享
IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io
Basic operation of queue (implemented in C language)
Open source internship experience sharing: openeuler software package reinforcement test
当主程架构游戏的时候,防止到处调用减少耦合性,怎么开放接口给其他人调用呢?
介绍一种对 SAP GUI 里的收藏夹事务码管理工具增强的实现方案
原来程序员搞私活这么赚钱?真的太香了
Chen Yu (Aqua) - Safety - & gt; Cloud Security - & gt; Multicloud security
Word2vec training Chinese word vector
被裁三个月,面试到处碰壁,心态已经开始崩了
[NLP] pre training model - gpt1
日志中打印统计信息的方案