当前位置:网站首页>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
边栏推荐
- [machine learning] VAE variational self encoder learning notes
- Animesr: learnable degradation operator and new real world animation VSR dataset
- Several models of IO blocking, non blocking, IO multiplexing, signal driven and asynchronous IO
- Anti fraud, refusing to gamble, safe payment | there are many online investment scams, so it's impossible to make money like this
- Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
- 微机原理与接口技术知识点整理复习–纯手打
- GET请求如何传递数组参数
- 2022 · 让我带你Jetpack架构组件从入门到精通 — Lifecycle
- 8 best practices to protect your IAC security!
- Chen Yu (Aqua) - Safety - & gt; Cloud Security - & gt; Multicloud security
猜你喜欢
详细讲解面试的 IO多路复用,select,poll,epoll
IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io
开源者的自我修养|为 ShardingSphere 贡献了千万行代码的程序员,后来当了 CEO
2022年PMP项目管理考试敏捷知识点(6)
[安网杯 2021] REV WP
【Flask】Flask启程与实现一个基于Flask的最小应用程序
日志中打印统计信息的方案
Station B was scolded on the hot search..
This paper introduces an implementation scheme to enhance the favorite transaction code management tool in SAP GUI
奔涌而来的数字化浪潮,将怎样颠覆未来?
随机推荐
使用 Lambda 函数URL + CloudFront 实现S3镜像回源
spark源码阅读总纲
Six years of technology iteration, challenges and exploration of Alibaba's globalization and compliance
“国防七子”经费暴增,清华足足362亿元,甩第二名101亿 |全国高校2022预算大公开...
20个实用的 TypeScript 单行代码汇总
Etcd 概要 机制 和使用场景
Simplex, half duplex, full duplex, TDD and FDD
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
1.8 new features list
Summary of 20 practical typescript single line codes
GET请求如何传递数组参数
Machine learning summary (I): linear regression, ridge regression, Lasso regression
2022 · 让我带你Jetpack架构组件从入门到精通 — Lifecycle
8款最佳实践,保护你的 IaC 安全!
【241. 为运算表达式设计优先级】
详细讲解面试的 IO多路复用,select,poll,epoll
Station B was scolded on the hot search..
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
【机器学习】VAE变分自编码器学习笔记
User defined annotation realizes the function of verifying information