当前位置:网站首页>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边栏推荐
猜你喜欢

6年技术迭代,阿里全球化出海&合规的挑战和探索

Kongsong (Xintong Institute) - cloud security capacity building and trend in the digital era

Etcd summary mechanism and usage scenarios

Chen Yu (Aqua) - Safety - & gt; Cloud Security - & gt; Multicloud security

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

MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review

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

进入前六!博云在中国云管理软件市场销量排行持续上升

When you really learn databinding, you will find "this thing is really fragrant"!

焱融看 | 混合云时代下,如何制定多云策略
随机推荐
Applet - multiple text line breaks in view
spark源码(五)DAGScheduler TaskScheduler如何配合提交任务,application、job、stage、taskset、task对应关系是什么?
学会使用LiveData和ViewModel,我相信会让你在写业务时变得轻松
Benefiting from the Internet, the scientific and technological performance of overseas exchange volume has returned to high growth
[Jianzhi offer] 55 - ii balanced binary tree
焱融看 | 混合云时代下,如何制定多云策略
Arthas use
【 剑指 Offer】55 - I. 二叉树的深度
8 popular recommended style layout
Word2vec training Chinese word vector
Liu Dui (fire line safety) - risk discovery in cloudy environment
arthas使用
7. Icons
介绍一种对 SAP GUI 里的收藏夹事务码管理工具增强的实现方案
程序设计的基本概念
孔松(信通院)-数字化时代云安全能力建设及趋势
用命令行 给 apk 签名
新手准备多少钱可以玩期货?农产品可以吗?
Camp division of common PLC programming software
机器学习总结(一):线性回归、岭回归、Lasso回归