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.82k stars 352 forks source link

Feature Request: post compressed protobuf to perfetto UI #847

Closed wangjiyang closed 3 months ago

wangjiyang commented 3 months ago

Perfetto ui only supports posting raw protobuf format array data to UI, according to https://perfetto.dev/docs/visualization/deep-linking-to-perfetto-ui. It takes long time for big traces like 1GB passing from my own website to user browsers. That cause bad user experience issues. Is it possible to do some kind of compression and perfetto ui decompress it on the fly, so the download procedure won't take so much time.

Thanks for your great work.

LalitMaganti commented 3 months ago

The UI supports both gzip and zip files so you can use either of those to compress your traces.