]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bb-perf: plot histograms base on buildstats data
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Tue, 15 Nov 2016 21:19:53 +0000 (15:19 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Nov 2016 15:48:05 +0000 (15:48 +0000)
commit70f99b427b9a0d691eacca7d4757840f8fd1634d
tree86f31e9c1366306f194609ddbf11fa69e4afbab9
parentdc7f4a5bf8d99280ef67301008b9878dbb43d05b
bb-perf: plot histograms base on buildstats data

Scripts that produces script data to be consumed by gnuplot.
There are two possible plots depending if either the
-S parameter is present or not:

    * without -S: Produces a histogram listing top N recipes/tasks versus
      stats. The first stat defined in the -s parameter is the one taken
      into account for ranking
    * -S: Produces a histogram listing tasks versus stats.  In this case,
      the value of each stat is the sum for that particular stat in all recipes found.
      Stats values  are in descending order defined by the first stat defined on -s

EXAMPLES

1. Top recipes' tasks taking into account utime

    $ buildstats-plot.sh -s utime | gnuplot -p

2. Tasks versus utime:stime

    $ buildstats-plot.sh -s utime:stime -S | gnuplot -p

3. Tasks versus IO write_bytes:IO read_bytes

    $ buildstats-plot.sh -s 'IO write_bytes:IO read_bytes' -S | gnuplot -p

(From OE-Core rev: 74408c19fba89de54c093fccf65b3a072d6a197b)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/bb-perf/buildstats-plot.sh [new file with mode: 0755]