Tuesday, 29 January 2019

Find memory use order in Android NDK JNI so file

Nearby I noticed that my Android app often crash because of OOM.

I use Android Studio 3.2.3 Profiler, so I find that native heap are up to 300M.

I want to find the memeory use by every C++ so files, BUT I can not find a tool to accomplish my work.

Any advice is appreciated

adb shell dumpsys mypackage
App Summary
                       Pss(KB)
                        ------
           Java Heap:    11568
         Native Heap:   202176
                Code:    18576
               Stack:     2716
            Graphics:    84772
       Private Other:    11300
              System:    43414

           TOTAL USS:   331108
               TOTAL:   343727       TOTAL SWAP PSS:    30795



from Find memory use order in Android NDK JNI so file

No comments:

Post a Comment