nanoscope icon indicating copy to clipboard operation
nanoscope copied to clipboard

[Feature request] Having a way to spot calls that takes more than 16ms

Open Bridouille opened this issue 7 years ago • 2 comments

Hi, I just gave the tool a try and it's really nice!

I'd like to know on which thread a method is called if that's possible (maybe even group them with some color by thread or something). Currently I can see which methods are called when, the time they take and average time of calls but on android it would be nice to know on which thread they're called (especially if on the UIThread).

I know there is the StrictMode to detect database/network/long calls on the UIThread but it doesn't work in all cases.

Thanks!

Bridouille avatar May 17 '18 19:05 Bridouille

Today the nanoscope start command only supports tracing a single thread. The data you see are the calls executed on the main thread only.

Leland-Takamine avatar May 17 '18 21:05 Leland-Takamine

Alright, then my request doesn't make much sense anymore since what we are the most interested in are the long calls in the main thread. It would be nice to add it somewhere in the Readme then!

It would be nice to maybe have horizontal chunks of 16ms (when we zoom enough) so we see if one method call was longer than 16ms (or mark all of the calls that takes > 16ms in a specific color so they're easy to spot).

Bridouille avatar May 18 '18 07:05 Bridouille