当前位置:网站首页>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边栏推荐
- 日志中打印统计信息的方案
- [NLP] pre training model - gpt1
- Admire, Ali female program undercover more than 500 black production groups
- About fossage 2.0 "meta force meta universe system development logic scheme (details)
- Après avoir été licencié pendant trois mois, l'entrevue s'est effondrée et l'état d'esprit a commencé à s'effondrer.
- A new book by teacher Zhang Yujin of Tsinghua University: 2D vision system and image technology (five copies will be sent at the end of the article)
- leetcode 322. Coin Change 零钱兑换(中等)
- 分布式事务简介(seata)
- QT学习管理系统
- How to pass array parameters in get request
猜你喜欢
![[anwangbei 2021] Rev WP](/img/98/ea5c241e2b8f3ae4c76e1c75c9e0d1.png)
[anwangbei 2021] Rev WP

Play with grpc - communication between different programming languages

Basic operation of queue (implemented in C language)

队列的基本操作(C语言实现)

清华章毓晋老师新书:2D视觉系统和图像技术(文末送5本)

一文读懂TDengine的窗口查询功能

逻辑是个好东西

Liu Dui (fire line safety) - risk discovery in cloudy environment

被裁三个月,面试到处碰壁,心态已经开始崩了

研发效能度量框架解读
随机推荐
【剑指Offer】54. 二叉搜索树的第k大节点
Scheme of printing statistical information in log
当你真的学会DataBinding后,你会发现“这玩意真香”!
“国防七子”经费暴增,清华足足362亿元,甩第二名101亿 |全国高校2022预算大公开...
Blind box NFT digital collection platform system development (build source code)
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
【剑指 Offer】55 - II. 平衡二叉树
leetcode622. Design cycle queue (C language)
Go integrates logrus to realize log printing
6年技术迭代,阿里全球化出海&合规的挑战和探索
[NLP] pre training model - gpt1
一文读懂TDengine的窗口查询功能
【修复版】仿我爱看电影网站模板/海洋CMS影视系统模板
Word2vec training Chinese word vector
被裁三個月,面試到處碰壁,心態已經開始崩了
TexStudio使用教程
MySQL log
QT community management system
Open source internship experience sharing: openeuler software package reinforcement test
IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io