History log of /external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3cbb10a30c000fcd2cd4658dd215778422c7bbb1 10-Apr-2018 Primiano Tucci <primiano@google.com> Remove warning suppressions and fix many casting bugs

This change removes most warning suppressions, in particular
from production code. In the past we inherit a bunch of -Wno-xxx
suppressions required to build gtest and libprotobuf headers.
Doing so, however, caused the suppressions to propagate back to
the translation units that were including any protobuf header
or any auto-generated .pb.h stub.
This change moves the gtest and probobuf header to be a
system include (-isystem vs -I). Doing so implicitly blacklists
any compiler warning on the headers.
This CL then re-enables warnings and deals with the fall out of
fixes that came out of this.

Bug: 77316877
Test: pefetto_unittests / perfetto_integrationtests
Change-Id: I3a01852ebf7d0b9bf19658ddf117209d129c70be
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
1b9c58a175e5b414904aed2878bdf7517f7fdfb0 29-Mar-2018 Hector Dearman <hjd@google.com> Added process tree config.

Process tree config contains an enum that allows the initial process dump or the on demand process dumps to be disabled.

Also contains a fix for the autogenerator code that makes it work for repeated enums.

Change-Id: I0666a890db87d2f857b2bcf9500d935b3a77c869
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
f4bc1d16d3862be10ef4dc4d211e1b24055ace48 26-Mar-2018 Hector Dearman <hjd@google.com> Replace PERFETTO_CHECK(false) with PERFETTO_FATAL

Bug: 69362224
Change-Id: I7feb47a72be5c47728a74209eef83614de1b111a
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
a812a9404f73cbf0976385f6afa1df2d8c309d3f 23-Mar-2018 Oystein Eftevaag <oysteine@google.com> In Chrome, build as shared library rather than directly linked sources

As libperfetto is linked into multiple Chrome components, this should
slightly cut down on linking time.

Change-Id: I885d49042625e00002032737ea5fb43c9bf1af90
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
09db827c202e5f23895ab278b7e360ba34152d77 08-Mar-2018 Primiano Tucci <primiano@google.com> TraceBuffer: minor cleanups

Minor cleanups in preparation for next CL.
The major changes introduced by this CL are:
- Intoduce a dedicated PatchList class
- Add uid support to TraceBuffer

Test: perfetto_unittests
Bug: 73612642
Change-Id: Id1c13e569b61e9265b79653598e81aed84064ecd
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
954d8ed604c478e636e9c2f60829b46efd7abf01 01-Mar-2018 Primiano Tucci <primiano@google.com> Add "protos" package to the ipc/*.proto files

We accidentally forgot to add "protos" to the package name
of those .proto files in the previous rounds. This was
creating class names collision problems in upcoming CLs.
Also fixing a minor bug in the proto_to_cpp tool when
dealing with repeated POD fields.
This is a non-funtional refactoring.

Change-Id: I1b03752c499de448ea6fe8f23b1259df9cc3c87e
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
40e9872d13586ca68cf7f6b8d24aa8c90e4472a2 16-Feb-2018 Primiano Tucci <primiano@google.com> Fix include guards and add PRESUBMIT

Also remove "include/" from the proto_to_cpp generated files.

Change-Id: If2cd4ce5ac3290ca9dffd114d48582ce2302efe8
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
20b760c0fd3e6b5d753ee499c71122a5fd84518e 19-Jan-2018 Primiano Tucci <primiano@google.com> Reshuffle .proto files under /proto

This CL does the following:
1) Separates the proto files under three folders (config, trace, ipc).
This allow to have distinct targets that the various clients can
link in, without pulling in the rest.

2) Moves all the protos under a "perfetto" subdirectory. This is to
reduce the ambiguity of the import statements within the .proto
files themselves. Now all imports look like:
import "perfetto/trace/trace.proto";

As a side effect this also means that both the perfetto public
headers (i.e. the code under include/) and the generated protobufs
are accessible as #include "perfetto/XXX".

Change-Id: I05d13a7b720fe50edb078fc99758b0f58b8feabc
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
63b62c4712b5e12512a88f702fc8ace94b16c407 04-Jan-2018 Sami Kyostila <skyostil@google.com> Fix include paths in generated headers

Instead of '#include "include/perfetto/..."' the generated proto header
files should use '#include "perfetto/...' as regular headers. Otherwise
they can't be included from a project embedding Perfetto.

Change-Id: I44dbf28f780feea4220e7a25004a541291bdf306
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
57e67e141cb2ed720c369b244d832186d5d38dbb 18-Dec-2017 Primiano Tucci <primiano@google.com> Add copy constructors to proto-generated structs.

Will be needed by upcoming CLs.
Also fix an include guard in a ftrace file.

Change-Id: I8698115ce70f5631e41eee6980db2feb3acae475
TBR=hjd@google.com
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc
5fec9219679a5d2f895af8e3e07a5982c280fab0 12-Dec-2017 Primiano Tucci <primiano@google.com> Introduce proto -> pure c++ code generator

It will be used to generate pure C++ headers / translation units
from trace_config.proto, data_source_config.proto and
data_source_descriptor.proto.
This allows to keep in sync the .proto files and the C++ classes
in tracing/core more easily.
The end goal is to allow clients of the tracing/core API to not
have to depend on libprotobuf (unless their source TraceConfig is
a proto and they want to have that dependency deliberately).

Change-Id: I0fdc53071661bba14af867d01d0a001accc082dc
/external/perfetto/tools/proto_to_cpp/proto_to_cpp.cc