lunes, 7 de octubre de 2013

Dalvik messages

//TODO: Lo traduciré en breve.

GC_FOR_MALLOC means that the GC was triggered because there wasn't enough memory left on the heap to perform an allocation. Might be triggered when new objects are being created.
GC_EXPLICIT means that the garbage collector has been explicitly asked to collect, instead of being triggered by high water marks in the heap. Happens all over the place, but most likely when a thread is being killed or when a binder communication is taken down.
There are a few others as well:
GC_CONCURRENT Triggered when the heap has reached a certain amount of objects to collect.
GC_EXTERNAL_ALLOC means that the the VM is trying to reduce the amount of memory used for collectable objects, to make room for more non-collectable.

Example:
GC_CONCURRENT freed <1K, 14% free 21220K/24455K, paused 6ms+26ms
  • GC_CONCURRENT : Jumps in because Heap is full
  • 14% free 21220K/24455K After this collection 14% of memory is free. Check the heap usage.
  • paused 6ms+26ms Time taken to collect garbage.

No hay comentarios:

Publicar un comentario