当前位置:网站首页>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边栏推荐
- 微机原理与接口技术知识点整理复习–纯手打
- Leetcode question 1: sum of two numbers (3 languages)
- 进入前六!博云在中国云管理软件市场销量排行持续上升
- minimum spanning tree
- Word2vec training Chinese word vector
- 二传感器尺寸「建议收藏」
- Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
- 研发效能度量框架解读
- Spark source code reading outline
- 当你真的学会DataBinding后,你会发现“这玩意真香”!
猜你喜欢

玩转gRPC—不同编程语言间通信

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

QT learning management system

B站被骂上了热搜。。

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)

2022. Let me take you from getting started to mastering jetpack architecture components - lifecycle

04-Redis源码数据结构之字典

Explain IO multiplexing, select, poll, epoll in detail

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

This paper introduces an implementation scheme to enhance the favorite transaction code management tool in SAP GUI
随机推荐
Liu Dui (fire line safety) - risk discovery in cloudy environment
【241. 为运算表达式设计优先级】
GET请求如何传递数组参数
Leetcode第一题:两数之和(3种语言)
The best landing practice of cave state in an Internet ⽹⾦ financial technology enterprise
04-Redis源码数据结构之字典
10. Page layout, guess you like it
Etcd summary mechanism and usage scenarios
Blind box NFT digital collection platform system development (build source code)
MySQL六十六问,两万字+五十图详解!复习必备
This paper introduces an implementation scheme to enhance the favorite transaction code management tool in SAP GUI
Applet - multiple text line breaks in view
Camp division of common PLC programming software
Fiori applications are shared through the enhancement of adaptation project
el-form-item 正则验证
【Flask】Flask启程与实现一个基于Flask的最小应用程序
Station B was scolded on the hot search..
LeetCode重建二叉树详解[通俗易懂]
陈宇(Aqua)-安全->云安全->多云安全
ArrayList capacity expansion mechanism and thread safety