• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 The Pigweed Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 //     https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 #pragma once
15 
16 // This namespace is NOT in pw::protobuf to allow filtering of symbols not
17 // intended to be reflected in the size report.
18 namespace pw::protobuf_size_report {
19 
20 // Includes ambient glue-related code that is required to set up size reports.
21 // Include this in base size reports to prevent irrelevant symbols from showing
22 // up in the final diffs.
23 void BloatWithBase();
24 
25 // Adds pw_protobuf's StreamEncoder and MemoryEncoders to the size report.
26 void BloatWithEncoder();
27 
28 // Adds pw_protobuf's StreamDecoder to the size report. This does not include
29 // the memory-buffer-only Decoder class, as the implementation is very
30 // different.
31 void BloatWithStreamDecoder();
32 
33 // Adds pw_protobuf's Decoder to the size report. This does not include the
34 // StreamDecoder class, as the implementation is very different.
35 void BloatWithDecoder();
36 
37 // Adds pw_protobuf's table-based Message encoder to the size report in addition
38 // to the StreamEncoder/MemoryEncoder.
39 void BloatWithTableEncoder();
40 
41 // Adds pw_protobuf's table-based Message decoder to the size report in addition
42 // to the StreamDecoder.
43 void BloatWithTableDecoder();
44 
45 }  // namespace pw::protobuf_size_report
46