google / perfetto

Performance instrumentation and tracing for Android, Linux and Chrome (read-only mirror of https://android.googlesource.com/platform/external/perfetto/)
https://www.perfetto.dev
Apache License 2.0
2.73k stars 341 forks source link

The Android log was truncated "..." with fixed width of the display area #780

Closed phding closed 3 months ago

phding commented 4 months ago

In UI, the android log seems to be truncated from

StreamInPrimary: 4784: local : handle (7e) format(0x1) sample_rate(48000) channel_mask(0xc) devices(0x80000004) 

To

StreamInPrimary: 4784: local : handle (7e) format(0x1) sample_rate(48000) channel_mask(0xc) devices...

Where the screen still have plenty of space for visualizing the logs. The message is now fixed width https://github.com/google/perfetto/blame/1f233121a8e6ce9b91e111aeff5118f9efb48823/ui/src/core_plugins/android_log/logs_panel.ts#L110

image

I have to go back to use v42 where the message is not truncated.

@stevegolton could we make it easy to adjust based on the screen size instead of fix size?

stevegolton commented 3 months ago

Thanks for raising the issue - we have a fix incoming

https://android-review.googlesource.com/c/platform/external/perfetto/+/3081309

Edit: this has now been merged and should be available on autopush shortly