Matt
Matt

Reputation: 2350

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?

Upvotes: 4

Views: 2583

Answers (1)

Alesh17
Alesh17

Reputation: 386

  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

Upvotes: 8

Related Questions