perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

update supported protobuf version

Open evanstade opened this issue 10 months ago • 3 comments

perfetto is not compatible with newer protobuf, for at least one reason: its overrides of google::protobuf::compiler::MultiFileErrorCollector are no longer functional; see this change and this change.

In Chromium this forces us to revert the second change in our copy of protobuf to support perfetto.

evanstade avatar Jan 22 '25 17:01 evanstade

From what I understand Chromium is on the same version of protobuf as us. Is that uprev happening on the Chromium side?

LalitMaganti avatar Jan 22 '25 17:01 LalitMaganti

Yes, Chromium is trying to uprev to pb 29.3. This is the only breakage related to that which I have noticed thus far, which is fairly lucky :) This is the workaround. After Perfetto is updated and rolled in Chromium we can simply remove that patch.

evanstade avatar Jan 22 '25 17:01 evanstade

~~I have also noticed that trace_processor_shell should probably have a dep on ../../gn:protoc_lib because it uses Parser which is part of the pb compiler. For some reason, Chromium currently pulls Parser into protobuf_full, however I suspect that Chromium should not do so. Making this change in perfetto and will allow Chromium to fix this oddity.~~

evanstade avatar Jan 22 '25 18:01 evanstade

I wanted to log the optimization_guide protos in a perfetto trace but it appears I can't do this because Chromium currently supports v31.0, the optimization_guide uses edition 2023. Chromium contains support for that edition but perfetto doesn't.

dtapuska avatar Jul 21 '25 16:07 dtapuska

Can Chromium's import of perfetto upgrade to proto 2023? Or is this more complicated than just rolling proto as a dependency?

markafoltz avatar Jul 21 '25 18:07 markafoltz

The proto in question also needs to roll into the Perfetto repo.

LalitMaganti avatar Jul 21 '25 18:07 LalitMaganti

@evanstade FYI the patch in Chromium is no longer needed because of https://github.com/google/perfetto/pull/3082

LalitMaganti avatar Sep 26 '25 01:09 LalitMaganti

@LalitMaganti thanks, I filed this issue to track cleanup in Chromium.

evanstade avatar Oct 04 '25 23:10 evanstade