commit | ba784e55fd6386b427cc6a1da2e241400c623edd | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Wed Nov 13 07:04:52 2019 -0800 |
committer | Primiano Tucci <primiano@google.com> | Wed Nov 13 07:04:52 2019 -0800 |
tree | 6bbfa63bd8834e955f0856508e9f9e574fd3aca6 | |
parent | 33ddd5f9c3ceb5521a85cece9db336e7e88c31ab [diff] |
Minor cleanups in preparation of protobuf -> zero migration This CL puts together some minor cleanups and fixes. This is to make next CLs easier to reason about. Notable changes: - Fix a bug in protozero about casing of gen fields (rare, affects only fields named_LIKE_this) - Add zig-zag decoder + as_sint32/64 methods + tests. - Move away from msg_case() for one-of deecoding and instead use has_field_name() pattern. The semantic is the same. The protozero .gen.cc classes support only has_xxx. - Move the test messages int the protozero.test.protos namespace. This makes it easier to deal with namespaces in the (short) transition period when we'll have: (1) .pbzero.h (2) .gen.h and (3) .pb.h generated classes. Bug: 132880619 Test: perfetto_unittests Change-Id: I3d5a58ae36230240ab11cb5b558a3c2be0db7313
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.
You can reach us on our Discord channel. If you prefer using IRC we have an experimental Discord <> IRC bridge synced with #perfetto-dev
on Freenode.