[poky] [PATCH 3/3] bb-perf: plot histograms base on buildstats data

Markus Lehtonen markus.lehtonen at linux.intel.com
Wed Nov 16 02:25:00 PST 2016


On Tue, 2016-11-15 at 15:19 -0600,
leonardo.sandoval.gonzalez at linux.intel.com wrote:
> From: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
> 
> 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

One problem (or problematic restriction) I see is that the script relies on
the new buildstats format introduced by PATCH 2/3 in this patchset, making
the script incompatible with older buildstats and not being able to render
them.

Another problem for me is the dependency on datamash which I wasn't able to
find for my distro (openSUSE Leap 42.1). How hard would it be to ditch the
dependency on datamash?


Thanks,
  Markus



More information about the poky mailing list