随笔分类 - Android 性能优化
摘要:Determining and Monitoring the Connectivity Status Determining and Monitoring the Connectivity Status This lesson teaches you to Determine if you Have
阅读全文
摘要:Determining and Monitoring the Docking State and Type PreviousNext Determining and Monitoring the Docking State and Type PreviousNext This lesson teac
阅读全文
摘要:Monitoring the Battery Level and Charging State PreviousNext Monitoring the Battery Level and Charging State PreviousNext This lesson teaches you to D
阅读全文
摘要:Optimizing for Doze and App Standby Optimizing for Doze and App Standby In this document Understanding Doze Doze restrictions Adapting your app to Doz
阅读全文
摘要:Optimizing General Network Use Optimizing General Network Use This lesson teaches you to Compress Data Cache Files Locally Optimize Pre-Fetch Cache Si
阅读全文
摘要:Optimizing Server-Initiated Network Use Optimizing Server-Initiated Network Use This lesson teaches you to Send Server Updates with GCM Network traffi
阅读全文
摘要:Optimizing App-Initiated Network Use Optimizing App-Initiated Network Use This lesson teaches you to Batch and Schedule Network Requests Allow System
阅读全文
摘要:Optimizing User-Initiated Network Use This lesson teaches you to Quick handling of user requests helps ensure a good user experience, especially when
阅读全文
摘要:Analyzing Network Traffic Data Analyzing Network Traffic Data 1.This lesson teaches you to Analyze App Network Traffic Analyze Network Traffic Types I
阅读全文
摘要:Collecting Network Traffic Data Collecting Network Traffic Data 1.This lesson teaches you to Tag Network Requests 标记网络类型 Configure a Network Test Buil
阅读全文
摘要:Optimizing Layout Hierarchies Optimizing Layout Hierarchies This lesson teaches you to Inspect Your Layout Revise Your Layout Use Lint You should also
阅读全文
摘要:Debug GPU Overdraw Walkthrough 1.In this document Prerequisites Visualizing Overdraw You should also read Profile GPU Rendering Walkthrough Hierarchy
阅读全文
摘要:Optimizing Your UI In this document Using Hierarchy Viewer Running Hierarchy Viewer and choosing a window About the View Hierarchy window Working with
阅读全文
摘要:Improving Your Code with lint 1.See Also lint (reference) Using Android Annotations In addition to testing that your Android application meets its fun
阅读全文
摘要:参考: https://liuzhichao.com/p/832.html http://www.2cto.com/kf/201311/255640.html 1,简介: SparseArray是android里为<Interger,Object> 这样的Hashmap而专门写的类,目的是提高效率,
阅读全文
摘要:1.简介 它是一个非常简单好用的内存泄漏检测工具库。可以轻松检测Activity,Fragment的内存泄漏。如果有内存泄漏,它会产生一个通知。 2.资料 官网: https://github.com/square/leakcanary 官网教程: https://github.com/square
阅读全文
摘要:1.集合类泄漏 集合类如果仅仅有添加元素的方法,而没有相应的删除机制,导致内存被占用。如果这个集合类是全局性的变量 (比如类中的静态属性,全局性的 map 等即有静态引用或 final 一直指向它),那么没有相应的删除机制,很可能导致集合所占用的内存只增不减。我们都喜欢通过 HashMap 做一些缓
阅读全文
摘要:参考 http://blog.csdn.net/xiaanming/article/details/42396507 基本步骤: 1,准备一个有内存泄漏的代码 2,如何发现内存泄漏 3,生成.hprof 4,打开.hprof 文件开始分析 5,修复代码 1,准备一个有内存泄漏的代码 2,如何发现内存
阅读全文
摘要:参考: http://www.blogjava.net/rosen/archive/2010/05/21/321575.html 1,Java进程内存堆分代: 典型的JVM根据generation(代)来进行GC。一个java程序内存堆有下面几个代: young generation (年轻代) t
阅读全文
摘要:原文: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.mat.ui.help%2Fgettingstarted%2Fbasictutorial.html Basic Tutorial This tutorial provide
阅读全文