当前位置:网站首页>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边栏推荐
- Qtdeisgner, pyuic detailed use tutorial interface and function logic separation (nanny teaching)
- SAP intelligent robot process automation (IRPA) solution sharing
- Etcd summary mechanism and usage scenarios
- MySQL日志
- 【IoT毕设.上】STM32+机智云AIoT+实验室安全监控系统
- spark源码(五)DAGScheduler TaskScheduler如何配合提交任务,application、job、stage、taskset、task对应关系是什么?
- 介绍一种对 SAP GUI 里的收藏夹事务码管理工具增强的实现方案
- Station B was scolded on the hot search..
- Explain IO multiplexing, select, poll, epoll in detail
- About fossage 2.0 "meta force meta universe system development logic scheme (details)
猜你喜欢

龙蜥社区开源 coolbpf,BPF 程序开发效率提升百倍

minimum spanning tree

spark源码(五)DAGScheduler TaskScheduler如何配合提交任务,application、job、stage、taskset、task对应关系是什么?

使用CMD修复和恢复病毒感染文件

使用net core 6 c# 的 NPOI 包,读取excel..xlsx单元格内的图片,并存储到指定服务器

焱融看 | 混合云时代下,如何制定多云策略

SAP intelligent robot process automation (IRPA) solution sharing

【NLP】预训练模型——GPT1

IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io

Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
随机推荐
逻辑是个好东西
[sword finger offer] 55 - I. depth of binary tree
介绍一种对 SAP GUI 里的收藏夹事务码管理工具增强的实现方案
单工,半双工,全双工区别以及TDD和FDD区别
7. Icons
Uni app realizes advertisement scroll bar
C language course design topic
奔涌而来的数字化浪潮,将怎样颠覆未来?
Etcd 概要 机制 和使用场景
C语言基础知识
[anwangbei 2021] Rev WP
玩转gRPC—不同编程语言间通信
Anti fraud, refusing to gamble, safe payment | there are many online investment scams, so it's impossible to make money like this
MySQL 66 questions, 20000 words + 50 pictures in detail! Necessary for review
受益互联网出海 汇量科技业绩重回高增长
Summary of 20 practical typescript single line codes
机器学习总结(一):线性回归、岭回归、Lasso回归
Self cultivation of open source programmers who contributed tens of millions of lines of code to shardingsphere and later became CEO
一文读懂TDengine的窗口查询功能
2. Sensor size "recommended collection"