On Nov 17, 8:48 am, Joel Gonçalves <joel.uch...@gmail.com> wrote: > I made some research and I found the System.gc() call to give a hint > to the GC. The problem is that it do not command the GC only gives a > hint. Is this method synchronous or asynchronous.
There is no way to turn the GC off. If you create your performance tests as a stand-alone application run from the shell, you can pass -Xmx and -Xms options to dalvikvm that make the heap really large, which should ensure that no GCs happen. (I've used this for benchmarks.) http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=docs/hello-world.html;hb=HEAD -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en