How to use ProtoLog.d()/v()/i()/w()/e()/wtf() in ProtoLog.java? #2351
-
|
For my own code, can I use ProtoLog.d()/v()/i()/w()/e()/wtf() in ProtoLog.java to output logs? Once I call ProtoLog.d()/v()/i()/w()/e()/wtf() to output logs, does it output in perfetto format? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I mean it's an API which works so in that respect you can use it. Whether it's useful depends on your usecase.
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 up in our UI at all. The trace processor puts it in the |
Beta Was this translation helpful? Give feedback.
I mean it's an API which works so in that respect you can use it. Whether it's useful depends on your usecase.
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 …