0

Let's say I've installed an app on my Android phone and I'm using it. Is there any way I could monitor the various activity that the app is doing on the phone and gather stats around it?

I'm talking about something very similar to "Process explorer" that we have for Windows except that I need to gather the details from an Android app.

This is in the hopes of being able to test whether the application is working properly on the Android platform. If I see things like:

  • CPU spikes,
  • or, which files were accessed
  • or a lot of battery consumption,
  • or if I see it accessing the disk too frequently,

then those will all be defects against the app.

Edit: The solution has to be runnable on Android OS. It should be something that I can install on Android so that it can trace out all files accessed by a particular process / CPU / memory / battery consumption. Just like how process explorer works on windows.

1

What about reading the developer manual? Always a great start...

To help you forward: android profiling but honestly, just a little search and you likely would have found that yourself...

And before you call something defects: you should define what unexpected behaviour is first. A cpu spike is not a problem in itself, for instance.

0

This is what you are looking for?

  • In Android Studio select > Profiler (at the bottom of the Android Studio)

enter image description here

  • Sessions and select + symbol afterwards the device (virtual device)

enter image description here

1
  • Not really. I think to run Android Studio I would need to be on windows? I meant something which we can install on the Android phone. Some kind of app that stays in the background and tracks the CPU usage to figure out which is the app that hogs CPU / memory / battery the most and traces all files used by any app.
    – Mugen
    Sep 3 at 5:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.