Skip to content
Discussion options

You must be logged in to vote

For my own code, can I use ProtoLog.d()/v()/i()/w()/e()/wtf() in ProtoLog.java to output logs?

I mean it's an API which works so in that respect you can use it. Whether it's useful depends on your usecase.

Once I call ProtoLog.d()/v()/i()/w()/e()/wtf() to output logs, does it output in perfetto format?

Tehcnically yes though Protolog was only designed for helping debug and analyse window transitions using Winscope. Documentation for this is tat https://source.android.com/docs/core/graphics/winscope/capture/adb#capture-adb-protolog and https://source.android.com/docs/core/graphics/winscope/analyze/protolog

Note however that the Perfetto UI has no support for protolog, it will not show …

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@JustinHu1983
Comment options

@LalitMaganti
Comment options

@JustinHu1983
Comment options

@LalitMaganti
Comment options

@JustinHu1983
Comment options

Answer selected by LalitMaganti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants