欢迎来到天天文库
浏览记录
ID:3907776
大小:773.29 KB
页数:26页
时间:2017-11-25
《android内存管理-mat与防范手段》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、内存管理与防范手段目录内存管理与防范手段.............................................................................................................................1一.内存分配跟踪工具DDMS–>Allocationtracker使用...............................................................2二.内存监
2、测工具DDMS-->Heap.......................................................................................................2三.内存分析工具MAT(MemoryAnalyzerTool).................................................................................31.生成.hprof文件.......
3、....................................................................................................................42.使用MAT导入.hprof文件.........................................................................................................53.使用MAT的视图
4、工具分析内存...............................................................................................5四.MAT使用实例................................................................................................................................51.生成heapdu
5、mp...........................................................................................................................72.用MAT分析heapdumps...........................................................................................................
6、93.使用MAT比较heapdumps.....................................................................................................11五.防范不良代码........................................................................................................................
7、.......111.查询数据库没有关闭游标.....................................................................................................112.缓存convertView..............................................................................................................
8、....123.Bitmap对象释放内存............................................................................................................134.释放对象的引用...............................................................................................................
此文档下载收益归作者所有