随笔分类 -  Android 性能优化

摘要:原文: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.mat.ui.help%2Fconcepts%2Fheapdump.html http://help.eclipse.org/mars/index.jsp?topic=%2 阅读全文
posted @ 2016-03-25 13:50 f9q 阅读(506) 评论(0) 推荐(0) 编辑
摘要:什么是Dalvik: Dalvik是Google公司自己设计用于Android平台的Java虚拟机。Dalvik虚拟机是Google等厂商合作开发的Android移动设备平台的核心组成部分之一。 Dalvik 经过优化,允许在有限的内存中同时运行多个虚拟机的实例,并且每一个Dalvik 应用作为一个 阅读全文
posted @ 2016-03-25 13:03 f9q 阅读(700) 评论(0) 推荐(0) 编辑
摘要:Memory and CPU monitor Android Studio provides a memory and CPU monitor view so you can more easily monitor your app's performance and memory usage to 阅读全文
posted @ 2016-03-22 15:59 f9q 阅读(1971) 评论(0) 推荐(0) 编辑
摘要:转自: http://www.cnblogs.com/sudawei/p/3527145.html 参考: Android Application生命周期学习 Android中如何查看内存(上) Android OnLowMemory和OnTrimMemory OnLowMemory是Android 阅读全文
posted @ 2016-03-16 23:28 f9q 阅读(395) 评论(0) 推荐(0) 编辑
摘要:Investigating Your RAM Usage 1.In this document Interpreting Log Messages 内存分析日志中各消息的含义 Viewing Heap Updates 查看当前内存快照的2种方法 Tracking Allocations 跟踪记录内存 阅读全文
posted @ 2016-03-15 22:26 f9q 阅读(2054) 评论(0) 推荐(1) 编辑
摘要:Managing Your App's Memory 1.In this document How Android Manages Memory Sharing Memory Allocating and Reclaiming App Memory Restricting App Memory Sw 阅读全文
posted @ 2016-03-15 22:19 f9q 阅读(685) 评论(0) 推荐(0) 编辑
摘要:A reference that is cleared when its referent is not strongly reachable and there is memory pressure. In practice, soft references are inefficient for 阅读全文
posted @ 2016-03-15 22:11 f9q 阅读(226) 评论(0) 推荐(0) 编辑
摘要:from: http://www.raizlabs.com/dev/2014/04/hunting-your-leaks-memory-management-in-android-part-2-of-2/ HUNTING YOUR LEAKS: MEMORY MANAGEMENT IN ANDROI 阅读全文
posted @ 2016-03-15 21:48 f9q 阅读(371) 评论(0) 推荐(0) 编辑
摘要:from : http://www.raizlabs.com/dev/2014/03/wrangling-dalvik-memory-management-in-android-part-1-of-2/ WRANGLING DALVIK: MEMORY MANAGEMENT IN ANDROID ( 阅读全文
posted @ 2016-03-15 21:42 f9q 阅读(225) 评论(0) 推荐(0) 编辑
摘要:1.官方文档 http://developer.android.com/reference/android/util/LruCache.html 2.代码如下 1 public LruCache<String,Bitmap> mMemoryCache; 2 3 void init(){ 4 // 获 阅读全文
posted @ 2015-08-10 23:12 f9q 阅读(156) 评论(0) 推荐(0) 编辑
摘要:1.优点 可以代替枚举,静态常量,可以让注解只在代码中存在,编译后就删除,可以省内存。 2.@IntDef 2.1 官网 https://developer.android.com/reference/kotlin/androidx/annotation/IntDef.html 2.2 java示例 阅读全文
posted @ 2015-05-22 23:06 f9q 阅读(4771) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示