Loading docs/html/_redirects.yaml +4 −0 Original line number Diff line number Diff line Loading @@ -842,6 +842,10 @@ redirects: to: /topic/performance/power/network/gather-data.html - from: /training/performance/battery/network/index.html to: /topic/performance/power/network/index.html - from: /training/articles/memory.html to: /topic/performance/memory.html - from: /topic/performance/optimizing-view-hierarchies.html to: /topic/performance/rendering/optimizing-view-hierarchies.html # Redirects for the new [dac]/topic/libraries/ area Loading docs/html/topic/performance/_book.yaml +28 −12 Original line number Diff line number Diff line Loading @@ -8,16 +8,18 @@ toc: - title: Network Use and Battery Consumption path: /topic/performance/power/network/index.html section: - title: Collecting Network Traffic Data path: /topic/performance/power/network/gather-data.html - title: Analyzing Data Traffic path: /topic/performance/power/network/analyze-data.html - title: Optimizing User-Initiated Network Use path: /topic/performance/power/network/action-user-traffic.html - title: Optimizing App-Initiated Network Use path: topic/performance/power/network/action-app-traffic.html - title: Optimizing Server-Initiated Network Use path: /topic/performance/power/network/action-server-traffic.html - title: Optimizing General Network Use path: /topic/performance/power/network/action-any-traffic.html - title: Smaller Network Resources path: /topic/performance/power/smaller-resources.html - title: Doze and App Standby path: /training/monitoring-device-state/doze-standby.html path_attributes: Loading @@ -25,21 +27,35 @@ toc: value: Help ensure the device isn't depleting the battery when not in use. - title: Battery Historian path: /topic/performance/power/battery-historian.html - title: Rendering path: /topic/performance/rendering/index.html path_attributes: - name: description value: Speed up your app's rendering section: - title: Reducing Overdraw path: /topic/performance/overdraw.html path: /topic/performance/rendering/overdraw.html - title: Optimizing View Hierarchies path: /topic/performance/rendering/optimizing-view-hierarchies.html - title: Using the Profile GPU Tool path: /topic/performance/profile-gpu.html path: /topic/performance/rendering/profile-gpu.html - title: Intelligent Job-Scheduling path: /topic/performance/scheduling.html - title: Background Optimization path: /topic/performance/background-optimization.html - title: Reducing APK Size path: /topic/performance/reduce-apk-size.html - title: Reducing Image Download Sizes path: /topic/performance/network-xfer.html - title: Launch-Time Performance path: /topic/performance/launch-time.html - title: Better Performance through Threading path: /topic/performance/threads.html - title: Optimizing View Hierarchies path: /topic/performance/optimizing-view-hierarchies.html - title: Background Optimization path: /topic/performance/background-optimization.html - title: Reducing APK Size path: /topic/performance/reduce-apk-size.html - title: Manage Your App's Memory path: /topic/performance/memory.html - title: Overview of Memory Managemement path: /topic/performance/memory-overview.html path_attributes: - name: description value: How to keep your app's memory footprint small in order to improve performance on a variety of mobile devices. docs/html/topic/performance/index.jd +1 −1 Original line number Diff line number Diff line page.title=Performance page.title=Performance and Power page.article=true page.metaDescription=Improve your app's performance by learning how to optimize power consumption, launch times, and other important areas of performance. Loading docs/html/training/articles/memory-overview.jd→docs/html/topic/performance/memory-overview.jd +4 −5 Original line number Diff line number Diff line page.title=Overview of Android Memory Management page.tags=ram,memory,paging,mmap page.article=true @jd:body @jd:body <div id="tb-wrapper"> <div id="tb"> <div id="qv-wrapper"> <div id="qv"> <h2>In this document</h2> <ol class="nolist"> Loading docs/html/training/articles/memory.jd→docs/html/topic/performance/memory.jd +13 −14 Original line number Diff line number Diff line page.title=Manage Your App's Memory page.tags=ram,low memory,OutOfMemoryError,onTrimMemory page.article=true @jd:body @jd:body <div id="tb-wrapper"> <div id="tb"> <div id="qv-wrapper"> <div id="qv"> <h2>In this document</h2> <ol class="nolist"> <li><a href="#monitor">Monitor Available Memory and Memory Usage</a> <ol> <li><a href="#monitor">Monitor Available Memory and Memory Usage</a> <ul> <li><a href="#AnalyzeRam">Tools for analyzing RAM usage</a></li> <li><a href="#release">Release memory in response to events</a></li> <li><a href="#CheckHowMuchMemory">Check how much memory you should use</a></li> </ol> </ul> </li> <li><a href="#code">Use More Efficient Code Constructst</a> <ol> <li><a href="#code">Use More Efficient Code Constructs</a> <ul> <li><a href="#Services">Use services sparingly</a></li> <li><a href="#DataContainers">Use optimized data containers</a></li> <li><a href="#Abstractions">Be careful with code abstractions</a></li> <li><a href="#NanoProto">Use nano protobufs for serialized data</a></li> <li><a href="#churn">Avoid memory churn</a></li> </ol> </ul> </li> <li><a href="#remove">Remove Memory-Intensive Resources and Libraries</a> <ol> <ul> <li><a href="#reduce">Reduce overall APK size</a></li> <li><a href="#DependencyInjection">Avoid dependency injection frameworks</a></li> <li><a href="#ExternalLibs">Be careful about using external libraries</a></li> </ol> </ul> </li> </ol> <h2>See Also</h2> Loading Loading @@ -365,8 +364,8 @@ private ActivityManager.MemoryInfo getAvailableMemory() { You should generally avoid use of persistent services because of the on-going demands they place on available memory. Instead, we recommend that you use an alternative implementation such as {@llink android.app.job.JobScheduler}. For more information about how to use {@llink android.app.job.JobScheduler} to schedule background such as {@link android.app.job.JobScheduler}. For more information about how to use {@link android.app.job.JobScheduler} to schedule background processes, see <a href="/topic/performance/background-optimization.html">Background Optimizations</a>. <p> Loading Loading
docs/html/_redirects.yaml +4 −0 Original line number Diff line number Diff line Loading @@ -842,6 +842,10 @@ redirects: to: /topic/performance/power/network/gather-data.html - from: /training/performance/battery/network/index.html to: /topic/performance/power/network/index.html - from: /training/articles/memory.html to: /topic/performance/memory.html - from: /topic/performance/optimizing-view-hierarchies.html to: /topic/performance/rendering/optimizing-view-hierarchies.html # Redirects for the new [dac]/topic/libraries/ area Loading
docs/html/topic/performance/_book.yaml +28 −12 Original line number Diff line number Diff line Loading @@ -8,16 +8,18 @@ toc: - title: Network Use and Battery Consumption path: /topic/performance/power/network/index.html section: - title: Collecting Network Traffic Data path: /topic/performance/power/network/gather-data.html - title: Analyzing Data Traffic path: /topic/performance/power/network/analyze-data.html - title: Optimizing User-Initiated Network Use path: /topic/performance/power/network/action-user-traffic.html - title: Optimizing App-Initiated Network Use path: topic/performance/power/network/action-app-traffic.html - title: Optimizing Server-Initiated Network Use path: /topic/performance/power/network/action-server-traffic.html - title: Optimizing General Network Use path: /topic/performance/power/network/action-any-traffic.html - title: Smaller Network Resources path: /topic/performance/power/smaller-resources.html - title: Doze and App Standby path: /training/monitoring-device-state/doze-standby.html path_attributes: Loading @@ -25,21 +27,35 @@ toc: value: Help ensure the device isn't depleting the battery when not in use. - title: Battery Historian path: /topic/performance/power/battery-historian.html - title: Rendering path: /topic/performance/rendering/index.html path_attributes: - name: description value: Speed up your app's rendering section: - title: Reducing Overdraw path: /topic/performance/overdraw.html path: /topic/performance/rendering/overdraw.html - title: Optimizing View Hierarchies path: /topic/performance/rendering/optimizing-view-hierarchies.html - title: Using the Profile GPU Tool path: /topic/performance/profile-gpu.html path: /topic/performance/rendering/profile-gpu.html - title: Intelligent Job-Scheduling path: /topic/performance/scheduling.html - title: Background Optimization path: /topic/performance/background-optimization.html - title: Reducing APK Size path: /topic/performance/reduce-apk-size.html - title: Reducing Image Download Sizes path: /topic/performance/network-xfer.html - title: Launch-Time Performance path: /topic/performance/launch-time.html - title: Better Performance through Threading path: /topic/performance/threads.html - title: Optimizing View Hierarchies path: /topic/performance/optimizing-view-hierarchies.html - title: Background Optimization path: /topic/performance/background-optimization.html - title: Reducing APK Size path: /topic/performance/reduce-apk-size.html - title: Manage Your App's Memory path: /topic/performance/memory.html - title: Overview of Memory Managemement path: /topic/performance/memory-overview.html path_attributes: - name: description value: How to keep your app's memory footprint small in order to improve performance on a variety of mobile devices.
docs/html/topic/performance/index.jd +1 −1 Original line number Diff line number Diff line page.title=Performance page.title=Performance and Power page.article=true page.metaDescription=Improve your app's performance by learning how to optimize power consumption, launch times, and other important areas of performance. Loading
docs/html/training/articles/memory-overview.jd→docs/html/topic/performance/memory-overview.jd +4 −5 Original line number Diff line number Diff line page.title=Overview of Android Memory Management page.tags=ram,memory,paging,mmap page.article=true @jd:body @jd:body <div id="tb-wrapper"> <div id="tb"> <div id="qv-wrapper"> <div id="qv"> <h2>In this document</h2> <ol class="nolist"> Loading
docs/html/training/articles/memory.jd→docs/html/topic/performance/memory.jd +13 −14 Original line number Diff line number Diff line page.title=Manage Your App's Memory page.tags=ram,low memory,OutOfMemoryError,onTrimMemory page.article=true @jd:body @jd:body <div id="tb-wrapper"> <div id="tb"> <div id="qv-wrapper"> <div id="qv"> <h2>In this document</h2> <ol class="nolist"> <li><a href="#monitor">Monitor Available Memory and Memory Usage</a> <ol> <li><a href="#monitor">Monitor Available Memory and Memory Usage</a> <ul> <li><a href="#AnalyzeRam">Tools for analyzing RAM usage</a></li> <li><a href="#release">Release memory in response to events</a></li> <li><a href="#CheckHowMuchMemory">Check how much memory you should use</a></li> </ol> </ul> </li> <li><a href="#code">Use More Efficient Code Constructst</a> <ol> <li><a href="#code">Use More Efficient Code Constructs</a> <ul> <li><a href="#Services">Use services sparingly</a></li> <li><a href="#DataContainers">Use optimized data containers</a></li> <li><a href="#Abstractions">Be careful with code abstractions</a></li> <li><a href="#NanoProto">Use nano protobufs for serialized data</a></li> <li><a href="#churn">Avoid memory churn</a></li> </ol> </ul> </li> <li><a href="#remove">Remove Memory-Intensive Resources and Libraries</a> <ol> <ul> <li><a href="#reduce">Reduce overall APK size</a></li> <li><a href="#DependencyInjection">Avoid dependency injection frameworks</a></li> <li><a href="#ExternalLibs">Be careful about using external libraries</a></li> </ol> </ul> </li> </ol> <h2>See Also</h2> Loading Loading @@ -365,8 +364,8 @@ private ActivityManager.MemoryInfo getAvailableMemory() { You should generally avoid use of persistent services because of the on-going demands they place on available memory. Instead, we recommend that you use an alternative implementation such as {@llink android.app.job.JobScheduler}. For more information about how to use {@llink android.app.job.JobScheduler} to schedule background such as {@link android.app.job.JobScheduler}. For more information about how to use {@link android.app.job.JobScheduler} to schedule background processes, see <a href="/topic/performance/background-optimization.html">Background Optimizations</a>. <p> Loading