当前位置:网站首页>SWT / anr problem - how to capture performance trace
SWT / anr problem - how to capture performance trace
2022-07-01 13:59:00 【Professional developer】
describe :
We have some ANR Or software watchdog (SWT) System performance caused by the problem . Default ANR and SWT Logs have no performance tracking . We can add... Ourselves Perfetto Document collection Android Device system wide performance tracking data source .
The order is as follows :
adb root
adb remount
adb shell "echo 0 > /sys/kernel/tracing/tracing_on"
adb shell setenforce 0
adb shell setprop persist.sys.printPerfettoTrace true
// Please refer to following perfetto config example file perfettoconfig.txt
adb push perfettoconfig.txt /data/local/traces
As follows patch be based on Android 11 To modify
Date: Fri, 14 May 2021 09:45:45 +0800
Subject: [PATCH] Debug: Print perfetto trace logs at ANR or SWWD
Change-Id: I1cf9b39f7648ac96bf3e4df122797aa17dd828da
---
.../core/java/com/android/server/Watchdog.java | 6 ++
.../java/com/android/server/am/PeffettoTrace.java | 65 ++++++++++++++++++++++
.../java/com/android/server/am/ProcessRecord.java | 9 +++
3 files changed
边栏推荐
- 那个很努力的学生,高考失败了……别慌!你还有一次逆袭机会!
- Detailed explanation of leetcode reconstruction binary tree [easy to understand]
- 孔松(信通院)-数字化时代云安全能力建设及趋势
- How will the surging tide of digitalization overturn the future?
- Dragon lizard community open source coolbpf, BPF program development efficiency increased 100 times
- 【IoT毕设.上】STM32+机智云AIoT+实验室安全监控系统
- [Jianzhi offer] 54 The k-th node of binary search tree
- C语言订餐管理系统
- Summary of interview questions (1) HTTPS man in the middle attack, the principle of concurrenthashmap, serialVersionUID constant, redis single thread,
- [Jianzhi offer] 55 - ii balanced binary tree
猜你喜欢
Basic operation of queue (implemented in C language)
被裁三个月,面试到处碰壁,心态已经开始崩了
Kongsong (Xintong Institute) - cloud security capacity building and trend in the digital era
【IoT毕设.下】STM32+机智云AIoT+实验室安全监控系统
用栈实现队列、用队列实现栈(C语言_leetcode_232+225)
【修复版】仿我爱看电影网站模板/海洋CMS影视系统模板
6年技术迭代,阿里全球化出海&合规的挑战和探索
Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
How can we protect our passwords?
QT学习管理系统
随机推荐
被裁三個月,面試到處碰壁,心態已經開始崩了
C language ordering management system
uni-app实现广告滚动条
El form item regular verification
详细讲解面试的 IO多路复用,select,poll,epoll
玩转MongoDB—搭建MongoDB集群
Go整合Logrus实现日志打印
Word2vec training Chinese word vector
当主程架构游戏的时候,防止到处调用减少耦合性,怎么开放接口给其他人调用呢?
How to pass array parameters in get request
【Flask】Flask启程与实现一个基于Flask的最小应用程序
进入前六!博云在中国云管理软件市场销量排行持续上升
逻辑是个好东西
[241. Design priority for operation expression]
MySQL日志
04 redis source code data structure dictionary
Station B was scolded on the hot search..
基于算力驱动、数据与功能协同的分布式动态(协同)渲染/功能运行时
Oracle-数据库对象的使用
Leetcode第一题:两数之和(3种语言)