summaryrefslogtreecommitdiffstats
path: root/tutorials/MoarRam/README.txt
diff options
context:
space:
mode:
authorBen Cheng <bccheng@android.com>2013-05-10 13:37:56 -0700
committerBen Cheng <bccheng@android.com>2013-05-29 15:03:12 -0700
commit50172ca00d02886088d3a80b0a3778cde20abbbd (patch)
treece61b6735ffb0d48fd92926015a550e67f803dde /tutorials/MoarRam/README.txt
parentf2d1fca86d4f94207eee67f54ff3eb50192dcbad (diff)
downloadandroid_development-50172ca00d02886088d3a80b0a3778cde20abbbd.tar.gz
android_development-50172ca00d02886088d3a80b0a3778cde20abbbd.tar.bz2
android_development-50172ca00d02886088d3a80b0a3778cde20abbbd.zip
New tutorial app for DDMS native heap tracker.
Change-Id: Ia8d35bc1ee44c6aaffe6fa10c6339edfa053aba4
Diffstat (limited to 'tutorials/MoarRam/README.txt')
-rw-r--r--tutorials/MoarRam/README.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tutorials/MoarRam/README.txt b/tutorials/MoarRam/README.txt
new file mode 100644
index 000000000..028389b2b
--- /dev/null
+++ b/tutorials/MoarRam/README.txt
@@ -0,0 +1,14 @@
+This is a simple app that can be used as a tutorial or reference benchmark
+for the development of the DDMS native heap tracker feature. It contains 3
+unique paths to allocate heap chunks:
+
+1) Java_com_android_benchmark_moarram_MainActivity_add32ByteBlocksNative in
+ foo.c (libmoarram-foo.so). Each invocation will allocate 32 bytes.
+2) Java_com_android_benchmark_moarram_MainActivity_add2MByteBlocksNative in
+ bar.c (libmoarram-bar.so). Each invocation will allocate 2M bytes.
+3) Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative
+ in baz.c (libmoarram-baz.so). Each invocation will allocate 17 or 71 bytes,
+ depending on the active button in a radio group.
+
+Each allocation can be freed by clicking the corresponding free button in the
+UI.