File: README.txt

package info (click to toggle)
android-platform-development 8.1.0%2Br23-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 37,780 kB
  • sloc: ansic: 166,133; xml: 75,737; java: 19,329; python: 11,511; cpp: 8,221; sh: 2,075; lisp: 261; ruby: 183; asm: 132; perl: 129; makefile: 18
file content (17 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.

NOTE 09/16/2013
A new feature is added to force a double free. Both debug libc and Valgrind can capture it.