tencent cloud

Tencent Cloud Observability Platform

Release Notes and Announcements
Release Notes
Product Introduction
Overview
Strengths
Basic Features
Basic Concepts
Use Cases
Use Limits
Purchase Guide
Tencent Cloud Product Monitoring
Application Performance Management
Mobile App Performance Monitoring
Real User Monitoring
Cloud Automated Testing
Prometheus Monitoring
Grafana
EventBridge
PTS
Quick Start
Monitoring Overview
Instance Group
Tencent Cloud Product Monitoring
Application Performance Management
Real User Monitoring
Cloud Automated Testing
Performance Testing Service
Prometheus Getting Started
Grafana
Dashboard Creation
EventBridge
Alarm Service
Cloud Product Monitoring
Tencent Cloud Service Metrics
Operation Guide
CVM Agents
Cloud Product Monitoring Integration with Grafana
Troubleshooting
Practical Tutorial
Application Performance Management
Product Introduction
Access Guide
Operation Guide
Practical Tutorial
Parameter Information
FAQs
Mobile App Performance Monitoring
Overview
Operation Guide
Access Guide
Practical Tutorial
Tencent Cloud Real User Monitoring
Product Introduction
Operation Guide
Connection Guide
FAQs
Cloud Automated Testing
Product Introduction
Operation Guide
FAQs
Performance Testing Service
Overview
Operation Guide
Practice Tutorial
JavaScript API List
FAQs
Prometheus Monitoring
Product Introduction
Access Guide
Operation Guide
Practical Tutorial
Terraform
FAQs
Grafana
Product Introduction
Operation Guide
Guide on Grafana Common Features
FAQs
Dashboard
Overview
Operation Guide
Alarm Management
Console Operation Guide
Troubleshooting
FAQs
EventBridge
Product Introduction
Operation Guide
Practical Tutorial
FAQs
Report Management
FAQs
General
Alarm Service
Concepts
Monitoring Charts
CVM Agents
Dynamic Alarm Threshold
CM Connection to Grafana
Documentation Guide
Related Agreements
Application Performance Management Service Level Agreement
APM Privacy Policy
APM Data Processing And Security Agreement
RUM Service Level Agreement
Mobile Performance Monitoring Service Level Agreement
Cloud Automated Testing Service Level Agreement
Prometheus Service Level Agreement
TCMG Service Level Agreements
PTS Service Level Agreement
PTS Use Limits
Cloud Monitor Service Level Agreement
API Documentation
History
Introduction
API Category
Making API Requests
Monitoring Data Query APIs
Alarm APIs
Legacy Alert APIs
Notification Template APIs
TMP APIs
Grafana Service APIs
Event Center APIs
TencentCloud Managed Service for Prometheus APIs
Monitoring APIs
Data Types
Error Codes
Glossary

Crash and ANR Monitoring

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-05-14 12:36:06

Enabling Feature

Initialization requires enabling Crash and ANR monitoring, which by default monitors Crash and ANR information.
// ModeStable mode by default includes Crash and ANR monitoring.
QAPM.beginScene(QAPM.SCENE_ALL, QAPM.ModeStable);
QAPM provides APIs for uploading custom log files in case of crashes or ANRs, if necessary. An example is as follows:
QAPM.setProperty(QAPM.PropertyExtraDataListener, new IExtraDataListener() {
// This callback is executed when an ANR occurs.
@Override
public List<String> onAnrExtraFileHandler() {
List<String> files = new ArrayList<>();
File[] fileArray = new File("xxxx").listFiles();//Enter the folder name at xxx.
for (File file : fileArray) {
files.add(file.getAbsolutePath());
}
return files;
}
// This callback is executed when a crash occurs.
@Override
public List<String> onCrashExtraFileHandler() {
List<String> files = new ArrayList<>();
File[] fileArray = new File("xxxx").listFiles();//Enter the folder name at xxx.
for (File file : fileArray) {
files.add(file.getAbsolutePath());
}
return files;
}
});

Verifying Whether the Feature Is Working Properly

Retrieval tag: QAPM_manager_QAPMPluginManager



Retrieval tag: QAPM_crash
The following log message in case of crashes or ANRs indicates that QAPM has collected this exception:



Retrieval tag: plugin::144
The following log message indicates that QAPM has successfully reported this exception. An example is as follows:



The other crash retrieval tags are as follows:
ANR: [plugin::140].
NativeCrash: [plugin::146].
Note:
To avoid lagging, keep the logic in the interface callbacks as simple and straightforward as possible.
Uploaded files must be less than 20 MB in size. Files larger than the limit will not be uploaded. Select helpful log files.
Crash events can be viewed on the Mobile Monitoring Crash page, and ANR rates can be viewed in the Overview page.



도움말 및 지원

문제 해결에 도움이 되었나요?

피드백