workflow-kotlin icon indicating copy to clipboard operation
workflow-kotlin copied to clipboard

Adopt Android Perfetto and/or `android.os.Trace`

Open rjrjr opened this issue 5 years ago • 6 comments
trafficstars

Quoth @zach-klippenstein:

TIL about Perfetto in Android 10, it's integration with android.os.Trace and we should probably replace TracingDiagnosticListener with one or both of those things.

rjrjr avatar May 21 '20 15:05 rjrjr

This sounds similar to what @AquaGeek added via square/workflow#1083.

JustinDSN avatar May 21 '20 15:05 JustinDSN

It is. We've actually had something similar for a long time, that generates files that Chrome can open and that it uses for its own tracing (Android used these too) - or they did until recently, apparently. This issue is partially to upgrade that tooling to the latest and greatest, and consider integrating with the OS itself. Although I don't think the OS facilities in Android has exact parity with os_signpost, so not sure that makes sense. Need to try it and see.

Fun fact: our diagnostic APIs have leapfrogged each other a couple times: square/workflow#129, square/workflow#343.

zach-klippenstein avatar May 21 '20 16:05 zach-klippenstein

This should not block 1.0. I think the 1.0 blocker should be getting TracingDiagnosticListener out of the main module, and then cleaning up the DiagnosticListener API. Then the tracing/Perfetto stuff can all be done separately. Not sure it even makes sense to have the tracing tools in the main repo, they're all built on that DL API which is public.

zach-klippenstein avatar May 21 '20 16:05 zach-klippenstein

This should not block 1.0. I think the 1.0 blocker should be getting TracingDiagnosticListener out of the main module, and then cleaning up the DiagnosticListener API. Then the tracing/Perfetto stuff can all be done separately. Not sure it even makes sense to have the tracing tools in the main repo, they're all built on that DL API which is public.

cc: @dhavalshreyas, and @AquaGeek for visibility into Zach's thoughts on debugging / tracing and 1.0.

JustinDSN avatar May 21 '20 17:05 JustinDSN

Blocker tracked in square/workflow#1177

rjrjr avatar May 21 '20 17:05 rjrjr

https://medium.com/androiddevelopers/whats-new-in-android-studio-system-trace-5841465c5935

zach-klippenstein avatar Jun 21 '20 21:06 zach-klippenstein