当前位置:网站首页>Camera memory memory leak analysis (III)
Camera memory memory leak analysis (III)
2022-06-26 03:46:00 【Cmatrix204】
adopt Provider、sysinfo A mechanism to monitor for memory leaks has some advantages and disadvantages , It can not accurately reflect the corresponding memory The change of , Prefer to choose to pass dumpsys meminfo Go to check Specific process of memory Changes , and dumsys The information will be more comprehensive 、 It is more conducive to the overall control of relevant problems .
One 、Profiler VS dumpsys
dumpsys memory The amount of information received and the amount of processes that can be monitored are far more than Profiler, Some questions can be answered through dumpsys Find out , Some questions passed Profiler It may be a miscarriage of justice .
Profiler Real time monitoring memory situation :

dumpsys Under surveillance memory situation :
Two 、 dumpsys meminfo normal 、 Abnormal data comparison
Normal data :

Abnormal data :

3、 ... and 、 Exhibition information platform malloc Anomaly tracking
Different platforms have certain right malloc Application and release tracking mechanism , Take zhanrui platform as an example , Configure tracking malloc Of backtrace after , Under a device that duplicates a memory leak dump native heap Information , With the platform development The following heap can be obtained by parsing the relevant scripts malloc Stackable lib Information .


summary
Actually Android Memory related problems are not just memory leaks , In the project, I have also encountered the problem that the heap space exception of dynamic application causes the program to crash when using this stack , Two different algorithms in the same project encountered similar problems at the same time , In the end, this question will be applied in advance malloc The space solution solves , But as R & D , I feel that it is really necessary to further study what happened behind these problems , However, the study of this problem may be delay.
边栏推荐
- js实现文字跑马灯效果
- MySQL stored procedure
- Uni app custom drop-down selection list
- 力扣79单词搜索
- kitti2bag 安装出现的各种错误
- Android gap animation translate, scale, alpha, rotate
- Is the waiting insurance record a waiting insurance evaluation? What is the relationship between the two?
- Worm copy construction operator overload
- “再谈”协议
- Non H5 end of uni app, regional setting of status bar on the top of mobile phone
猜你喜欢

Can string be changed?

progress bar

Camera-memory内存泄漏分析(二)

Uni app swiper rotation chart (full screen / card)

Request object, send request

Slide the menu of uni app custom components left and right and click switch to select and display in the middle

ASP. Net startup and running mechanism

Classic model - Nin & googlenet

高性能算力中心 — RoCE — Overview

MySQL development environment
随机推荐
Double carbon bonus + great year of infrastructure construction 𞓜 deep ploughing into the field of green intelligent equipment for water conservancy and hydropower
链路监控 pinpoint
Request object, send request
Mysql database foundation
开源!ViTAE模型再刷世界第一:COCO人体姿态估计新模型取得最高精度81.1AP
(15)Blender源码分析之闪屏窗口显示菜单功能
Binary search
Is it safe to open a fund account? How to apply
USB驱动-debug
力扣79单词搜索
Kotlin quick start
Kotlin uses viewpager2+fragment+bottomnavigationview to implement the style of the switching module of the bottom menu bar.
Introduction of mybatis invalid
【MySQL】 MySQL 导出数据库
Class diagram
Restful API interface design standards and specifications
MySQL addition, deletion, query and modification (primary level)
Classic model - Nin & googlenet
Solve the problem that the uniapp plug-in Robin editor reports an error when setting the font color and background color
Add an "open search description" to the site to adapt to the browser's "site search"“