uber / nanoscope

An extremely accurate Android method tracing tool.
Apache License 2.0
1.25k stars 68 forks source link

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

Open Bridouille opened 6 years ago

Bridouille commented 6 years ago

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!

Leland-Takamine commented 6 years ago

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

Bridouille commented 6 years ago

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).