当前位置:网站首页>SWT/ANR问题--当发送ANR/SWT时候如何打开binder trace(BinderTraces)
SWT/ANR问题--当发送ANR/SWT时候如何打开binder trace(BinderTraces)
2022-07-01 13:48:00 【专业开发者】
问题描述:
由于绑定事务,我们经常遇到一些系统看门狗(或ANR)问题。 此时,在获得绑定器跟踪日志后,对我们分析问题非常有帮助。
在本文档中,我们介绍如何在发生看门狗(或ANR)时启用绑定跟踪(BinderTraces)日志。
解决方案:
1. 当ANR发生时,文件名为“BinderTraces_pid__.txt”
2. 当发生WATCHDOG时,文件名是为“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边栏推荐
- What "hard core innovations" does Intel have in the first half of 2022? Just look at this picture!
- MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review
- Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
- 奔涌而来的数字化浪潮,将怎样颠覆未来?
- What class loading mechanisms does the JVM have?
- 日志中打印统计信息的方案
- 洞态在某互联⽹⾦融科技企业的最佳落地实践
- JVM有哪些类加载机制?
- 6. Wiper part
- The best landing practice of cave state in an Internet ⽹⾦ financial technology enterprise
猜你喜欢

孔松(信通院)-数字化时代云安全能力建设及趋势

SAP intelligent robot process automation (IRPA) solution sharing

2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!

奔涌而来的数字化浪潮,将怎样颠覆未来?

The best landing practice of cave state in an Internet ⽹⾦ financial technology enterprise

Anti fraud, refusing to gamble, safe payment | there are many online investment scams, so it's impossible to make money like this
![[anwangbei 2021] Rev WP](/img/98/ea5c241e2b8f3ae4c76e1c75c9e0d1.png)
[anwangbei 2021] Rev WP

leetcode622.设计循环队列(C语言)

研发效能度量框架解读

SAP 智能机器人流程自动化(iRPA)解决方案分享
随机推荐
3.4 《数据库系统概论》之数据查询—SELECT(单表查询、连接查询、嵌套查询、集合查询、多表查询)
【剑指 Offer】55 - II. 平衡二叉树
逻辑是个好东西
QT社团管理系统
SAP 智能机器人流程自动化(iRPA)解决方案分享
French Data Protection Agency: using Google Analytics or violating gdpr
[241. Design priority for operation expression]
Introduction to topological sorting
word2vec训练中文词向量
Solution to 0xc000007b error when running the game [easy to understand]
运行游戏时出现0xc000007b错误的解决方法[通俗易懂]
C language course design topic
Spark source code reading outline
奔涌而来的数字化浪潮,将怎样颠覆未来?
【机器学习】VAE变分自编码器学习笔记
Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
Station B was scolded on the hot search..
“国防七子”经费暴增,清华足足362亿元,甩第二名101亿 |全国高校2022预算大公开...
陈宇(Aqua)-安全->云安全->多云安全
Explain IO multiplexing, select, poll, epoll in detail