简体   繁体   中英

how to check memory usage of an android app using apache cordova

嗨,我想检查应用程序和应用程序的处理器的内存使用情况。这可能是在使用javascript,HTML5,CSS3在apache cordova中开发的android应用程序中的。请为此提出一些解决方案。

Here's the method I use to monitor the memory usage of my Cordova apps.

  1. Start your Cordova app on your Android system.
  2. Open the Stock Settings App that is bundled with Android.
  3. Navigate to the Apps tab.
  4. You should see a list of applications. On the top of the screen (this will differ from device to device), there should be a scroll-able bar that says "Downloaded". Scroll right until it says "Running".
  5. Look for your app in the list of running apps. Tap it to see information, including memory usage.

Explanation with gifs: WikiHow

NOTE: Sometimes you may have to hit "SHOW CACHED PROCESSES" at the top to see Cordova apps in the list.

As for processor usage,

  1. Open the Settings App.
  2. Navigate to Developer Tools
  3. Enable them and under the 'Monitoring' section, check 'Show CPU usage'.

NOTE: The CPU Usage overlay can be a bit confusing, monitor it carefully!

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM