Commit Graph

4 Commits

Author SHA1 Message Date
Alexei Frolov
a97e55d084 pw_bloat: Output "(all)" row if no segments differ
This change applies the fix from 0e892b5 to output a row indicating
identical binaries in the case where some segments exist but have no
delta between them.

Bug: 35
Change-Id: I4fdb6ff3de906b648ce75da6f7724d7babef6ac0
2019-12-24 05:09:21 +00:00
Wyatt Hepler
becb431e5f Apply pw format to the repository
Change-Id: I3c8e4f956dfe6c9e81d3069f72c30c5950852074
2019-12-05 09:31:11 -08:00
Wyatt Hepler
0e892b5b27 pw_bloat: Handle identical binaries
Prints "(all)" as the segment and "(same)" for before/after when bloat
binaries have identical segments. Previously, nothing was printed.

Example output:
┌────────────┬───────────┬────────┬───────┬────────┐
│    Label   │  Segment  │ Before │ Delta │  After │
├════════════┼═══════════┼════════┼═══════┼════════┤
│ Identical! │     (all) │ (same) │     0 │ (same) │
└────────────┴───────────┴────────┴───────┴────────┘

Change-Id: Ib02f0db55a6c8fbba053444b3a33408805e8e0aa
2019-11-19 12:58:31 -08:00
Alexei Frolov
e2016763a8
Add pw_bloat module
This change adds a size reporting module named pw_bloat. The module
uses Bloaty McBloatface to generate size report cards for binaries. It
provides a GN template which defines an action to perform a size diff
on a group of binary targets.

Example output:

                       simple_bloat
                       ────────────
┌────────────────┬──────────────┬────────┬───────┬───────┐
│      Label     │    Segment   │ Before │ Delta │ After │
├════════════════┼══════════════┼════════┼═══════┼═══════┤
│     Add a loop │ EXAMPLE CODE │    429 │   +32 │   461 │
│                │ EXAMPLE  RAM │    576 │    +8 │   584 │
├────────────────┼──────────────┼────────┼───────┼───────┤
│ Add a function │ EXAMPLE CODE │    429 │   +16 │   445 │
│                │ EXAMPLE  RAM │    576 │    +8 │   584 │
└────────────────┴──────────────┴────────┴───────┴───────┘

Change-Id: I14b3d383ec450bc6d017bf5d0111e266b0a3c368
2019-11-14 14:29:28 -08:00