• Home
  • History
  • Annotate
  • only in /development/tutorials/MoarRam/
NameDateSize

..01-Nov-20134 KiB

Android.mk01-Nov-2013941

AndroidManifest.xml01-Nov-2013784

jni/01-Nov-20134 KiB

README.txt01-Nov-2013775

res/01-Nov-20134 KiB

src/01-Nov-20134 KiB

README.txt

1This is a simple app that can be used as a tutorial or reference benchmark
2for the development of the DDMS native heap tracker feature. It contains 3
3unique paths to allocate heap chunks:
4
51) Java_com_android_benchmark_moarram_MainActivity_add32ByteBlocksNative in
6   foo.c (libmoarram-foo.so). Each invocation will allocate 32 bytes.
72) Java_com_android_benchmark_moarram_MainActivity_add2MByteBlocksNative in
8   bar.c (libmoarram-bar.so). Each invocation will allocate 2M bytes.
93) Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative
10   in baz.c (libmoarram-baz.so). Each invocation will allocate 17 or 71 bytes,
11   depending on the active button in a radio group.
12
13Each allocation can be freed by clicking the corresponding free button in the
14UI.
15