third_party.pigweed.src/pw_bloat/bloat.rst
Wyatt Hepler b82f995f2b pw_docgen: Fix paths, multiple sources
- Fix code for remapping paths into the docgen tree. Some path prefixes
  were being incorrectly trimmed, preventing size report inclusion in
  some cases.
- Make Sphinx warnings errors.
- Allow specifying multiple top-level sources to a pw_doc_gen.
- Move documentation for modules to their own table of contents.
- Rename module documentation to the module names.

Change-Id: Ic475019673ccefdb786a28d241a143886af097ab
2019-11-25 14:55:02 -08:00

32 lines
767 B
ReStructuredText

.. _chapter-bloat:
.. default-domain:: cpp
.. highlight:: sh
--------
pw_bloat
--------
The bloat module provides tools to generate size report cards for output
binaries.
.. TODO(frolv): Explain how bloat works and how to set it up.
Documentation integration
=========================
Bloat reports are easy to add to documentation files. All ``pw_size_report``
targets output a ``.rst`` file containing a tabular report card. This file
can be imported directly into a documentation file using the ``include``
directive.
For example, the ``simple_bloat`` bloat report under ``//pw_bloat/examples``
is imported into this file as follows:
.. code:: rst
.. include:: examples/simple_bloat.rst
Resulting in this output:
.. include:: examples/simple_bloat.rst