Android中如何查看内存

(一)DDMS 的Heap Dump

Android中如何查看内存_第1张图片

1) Data Object:java object.

2) Class Object:object of type Class, e.g. what you'd get from java.lang.String.class or myObject.getClass( ).
3) 1,2,4,8-byte array:Number of bytes per entry. 
   1-byte array: byte, boolean
   2-byte array: char, short
   4-byte array: float, int
   8-byte array: double, long 

4) non-Java object:A non-Java Object is a piece of memory that isn't actually accessible from code written in Java. Essentially it's a blob of stuff that got stuck on the virtual heap but has no meaning to interpreted code. Shouldn't be much of that.

你可能感兴趣的:(Android中如何查看内存)