Thursday, December 27, 2012

[android-developers] Android memory usage API (USS/PSS) Vs smem report

Reading how to mesure accurately a process memory usage (http://elinux.org/Android_Memory_Usage), I've been using USS provided by PrivateDirty: http://developer.android.com/reference/android/os/Debug.MemoryInfo.html

Per D. Hackborn comment (http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813#2299813), USS reported by the Android API is PrivateDirty.

However when using smem (http://www.selenic.com/smem/), I noticed that USS reported by smem is actually PrivateDirty + PrivateClean, so I was wondering why this difference and what's more accurate ? 

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate