Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See all method calls in Android Studio debugger?

I am working on an app that uses a lot of asynchrous calls and eventbus logic and so the code is hard to follow just from reading. I want to see which methods are called when I do certain basic use-paths. Is there a way to log which methods are getting called without going and putting a log statement/breakpoint in every method?

like image 848
Matt Avatar asked Oct 14 '25 17:10

Matt


1 Answers

  1. Open Profiler.
  2. Run App.
  3. Click on CPU in Profiler.
  4. Then Select CPU Profiling mode as "Trace Java Methods".
  5. Click "Record".
  6. Do your asynchronous calls.
  7. Click "Stop".
  8. On the right side screen click "Top Down".

Success (happy coding)

enter image description here

like image 171
Alesh17 Avatar answered Oct 17 '25 08:10

Alesh17



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!