perfetto
perfetto copied to clipboard
update supported protobuf version
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.
From what I understand Chromium is on the same version of protobuf as us. Is that uprev happening on the Chromium side?
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.
~~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.~~
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.
Can Chromium's import of perfetto upgrade to proto 2023? Or is this more complicated than just rolling proto as a dependency?
The proto in question also needs to roll into the Perfetto repo.
@evanstade FYI the patch in Chromium is no longer needed because of https://github.com/google/perfetto/pull/3082
@LalitMaganti thanks, I filed this issue to track cleanup in Chromium.