当前位置:网站首页>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边栏推荐
- 9. Use of better scroll and ref
- Summary of interview questions (1) HTTPS man in the middle attack, the principle of concurrenthashmap, serialVersionUID constant, redis single thread,
- 使用net core 6 c# 的 NPOI 包,读取excel..xlsx单元格内的图片,并存储到指定服务器
- 机器学习总结(一):线性回归、岭回归、Lasso回归
- Etcd summary mechanism and usage scenarios
- What "hard core innovations" does Intel have in the first half of 2022? Just look at this picture!
- Benefiting from the Internet, the scientific and technological performance of overseas exchange volume has returned to high growth
- 微机原理与接口技术知识点整理复习–纯手打
- el-form-item 正则验证
- 1.8 new features list
猜你喜欢

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

Animesr: learnable degradation operator and new real world animation VSR dataset

Interpretation of R & D effectiveness measurement framework

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

被裁三个月,面试到处碰壁,心态已经开始崩了
![[NLP] pre training model - gpt1](/img/bd/9803ad946b33159de51b93106a2151.png)
[NLP] pre training model - gpt1

2022 · 让我带你Jetpack架构组件从入门到精通 — Lifecycle

Computer network interview knowledge points

详细讲解面试的 IO多路复用,select,poll,epoll

玩转MongoDB—搭建MongoDB集群
随机推荐
How much money do novices prepare to play futures? Is agricultural products OK?
详细讲解面试的 IO多路复用,select,poll,epoll
【241. 为运算表达式设计优先级】
MySQL日志
6. Wiper part
8款最佳实践,保护你的 IaC 安全!
进入前六!博云在中国云管理软件市场销量排行持续上升
Some summary of pyqt5 learning (overview of the general meaning of some signals and methods)
Investment analysis and prospect prediction report of global and Chinese p-nitrotoluene industry Ⓙ 2022 ~ 2027
8 best practices to protect your IAC security!
玩转gRPC—不同编程语言间通信
The best landing practice of cave state in an Internet ⽹⾦ financial technology enterprise
JVM有哪些类加载机制?
[241. Design priority for operation expression]
Leetcode question 1: sum of two numbers (3 languages)
Blind box NFT digital collection platform system development (build source code)
机器学习总结(一):线性回归、岭回归、Lasso回归
Computer network interview knowledge points
[Jianzhi offer] 54 The k-th node of binary search tree
AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集