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.78k stars 348 forks source link

Document support of protobuf extension #901

Open benjamin-cooper-ai opened 2 days ago

benjamin-cooper-ai commented 2 days ago

From: https://github.com/google/perfetto/issues/11

We've since landed extension support in Protozero, a way to use custom extension fields inside TrackEvents and support for bundling proto extension descriptors together with the trace so that Trace Processor and Perfetto UI can make sense of the custom types.

So, in theory all the pieces are available, but perhaps the most important part is still work in progress: documentation. Stay tuned!

Can this feature please be publicly documented? I don't feel comfortable using an undocumented feature and it'd be nice to get this feature over the last mile.

LalitMaganti commented 2 days ago

Ack thanks for calling this out. We have a big docs refactor planned for Q4, I'll try to take a look at this when that happens.

LalitMaganti commented 2 days ago

Just to be clear, this feature is relied upon heavily by Chrome so you can be rest assured even if it's underdocumented, it's not going anywhere and you can rely on it :)