diff options
author | Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> | 2016-02-02 14:05:59 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-07 15:52:25 +0100 |
commit | 8c5afd120e818f92ee671ee4a67ef97f53fcc5cb (patch) | |
tree | 023099b18c9886f8283c3b15b2f5ee823bb4e244 /docs/manual/common-usage.txt | |
parent | 8b1c4583ec27caaa59c6fa1a8ce38664cfc21612 (diff) | |
download | buildroot-8c5afd120e818f92ee671ee4a67ef97f53fcc5cb.tar.gz buildroot-8c5afd120e818f92ee671ee4a67ef97f53fcc5cb.zip |
support/scripts: add size-stats-compare script
Leverage the CSV files produces by size-stats (make graph-size) to allow
for a comparison of rootfs size between two different buildroot
compilations.
The script takes the file-size CSV files of two compilations as input, and
produces a textual report of the differences per package.
Using the -d/--detail flag, the report will show the file size changes
instead of package size changes.
The -t/--threshold option allows to ignore file size differences smaller
or equal than the given threshold (in bytes).
Example output is:
Size difference per package (bytes), threshold = 0
--------------------------------------------------------------------------------
-8192 busybox
228572 added dmalloc
301584 added jq
--------------------------------------------------------------------------------
521964 TOTAL
or with detailed view:
Size difference per file (bytes), threshold = 0
--------------------------------------------------------------------------------
-8192 bin/busybox
18152 added usr/bin/jq
39252 added usr/bin/dmalloc
46968 added usr/lib/libdmalloc.so
47288 added usr/lib/libdmallocxx.so
47316 added usr/lib/libdmallocth.so
47748 added usr/lib/libdmallocthcxx.so
283432 added usr/lib/libjq.so.1.0.4
--------------------------------------------------------------------------------
521964 TOTAL
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'docs/manual/common-usage.txt')
-rw-r--r-- | docs/manual/common-usage.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/manual/common-usage.txt b/docs/manual/common-usage.txt index 8d0ba63825..18677b89c5 100644 --- a/docs/manual/common-usage.txt +++ b/docs/manual/common-usage.txt @@ -317,6 +317,16 @@ The collected filesystem size data is only meaningful after a complete clean rebuild. Be sure to run +make clean all+ before using +make graph-size+. +To compare the root filesystem size of two different Buildroot compilations, +for example after adjusting the configuration or when switching to another +Buildroot release, use the +size-stats-compare+ script. It takes two ++file-size-stats.csv+ files (produced by +make graph-size+) as input. +Refer to the help text of this script for more details: + +---------------- +support/scripts/size-stats-compare -h +---------------- + include::eclipse-integration.txt[] include::advanced.txt[] |