diff --git a/docs/html/images/tools/studio-allocation-tracker-icon.png b/docs/html/images/tools/studio-allocation-tracker-icon.png new file mode 100644 index 0000000000000..3b6e5bafb575a Binary files /dev/null and b/docs/html/images/tools/studio-allocation-tracker-icon.png differ diff --git a/docs/html/images/tools/studio-allocation-tracker.png b/docs/html/images/tools/studio-allocation-tracker.png new file mode 100644 index 0000000000000..058a099b9bff3 Binary files /dev/null and b/docs/html/images/tools/studio-allocation-tracker.png differ diff --git a/docs/html/tools/debugging/debugging-memory.jd b/docs/html/tools/debugging/debugging-memory.jd index fc9520abe7f43..fc4f4bedd5113 100644 --- a/docs/html/tools/debugging/debugging-memory.jd +++ b/docs/html/tools/debugging/debugging-memory.jd @@ -300,7 +300,33 @@ allocations that need to be done for that behavior, what thread they are on, and from. This is extremely valuable for tightening up these paths to reduce the work they need and improve the overall smoothness of the UI.
-To use Allocation Tracker:
+To use the Allocation Tracker, open the Memory Monitor in Android Studio and click the + +Allocation Tracker icon. You can also track allocations in the Android Device Monitor:
+ + +To use the Allocation Tracker in +Android Studio:
+ +Android Studio creates the allocation file with the filename
+ Allocations-yyyy.mm.dd-hh.mm.ss.alloc in the Captures tab.
From your <sdk>/tools/ directory, launch the monitor tool.
Note: If you're using the version of DDMS that's integrated into -Eclipse, you do not need to perform the HPROF conversion—DDMS performs the conversion by +Eclipse, you do not need to perform the HPROF conversation—it performs the conversion by default.
You can now load the converted file in MAT or another heap analysis tool that understands diff --git a/docs/html/tools/performance/allocation-tracker/index.jd b/docs/html/tools/performance/allocation-tracker/index.jd index e71b584ffba18..d68f601e7effa 100644 --- a/docs/html/tools/performance/allocation-tracker/index.jd +++ b/docs/html/tools/performance/allocation-tracker/index.jd @@ -90,19 +90,24 @@ page.article=true alt="" width="400px" />
- Figure 1. Steps for starting Allocation Tracker. + Figure 1. Steps for starting Allocation Tracker in Android DDMS.
- Figure 2. Example of Allocation Tracker output. + Figure 2. Example of Allocation Tracker output in Android DDMS.
diff --git a/docs/html/tools/performance/comparison.jd b/docs/html/tools/performance/comparison.jd index 06407173fffa0..f79e762797f55 100644 --- a/docs/html/tools/performance/comparison.jd +++ b/docs/html/tools/performance/comparison.jd @@ -111,7 +111,7 @@ page.article=true
diff --git a/docs/html/tools/studio/index.jd b/docs/html/tools/studio/index.jd
index bbb4edc230b8e..43cb2fe53ed52 100644
--- a/docs/html/tools/studio/index.jd
+++ b/docs/html/tools/studio/index.jd
@@ -226,6 +226,30 @@ snapshot in the Captures view and select Export to standard .hp
+ Android Studio allows you to track memory allocation as it monitors memory use. Tracking memory
+allocation allows you to monitor where objects are being allocated when you perform certain actions.
+Knowing these allocations enables you to adjust the method
+calls related to those actions to optimize your app's performance and memory use. Figure 6. Allocation tracker. Perform the following steps to track and analyze allocations: The allocation viewer allows you to view and analyze the allocations your app made while
+ running. Allocation tracker
+
+
+
+
+
) in the
+ Memory Monitor. Android Studio starts tracking memory allocations.Allocation-yyyy.mm.dd-hh.mm.ss.alloc. The
+ resulting file appears in the Captures tab. Data file access