Lines Matching +full:1 +full:d +full:- +full:histogram

3 # Copyright (C) 2011 by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 # data generated by Buildroot in the $(O)/build-time.log file.
25 # cat $(O)/build-time.log | ./support/scripts/graph-build-time --type=histogram --output=foobar.p…
29 # * histogram, which creates an histogram of the build time for each
33 # order. See the --order option.
35 # * pie-packages, which creates a pie chart of the build time of
37 # contributed to less than 1% of the overall build time are all
40 # * pie-steps, which creates a pie chart of the time spent globally
43 # The default is to generate an histogram ordered by package name.
47 # * matplotlib (python-matplotlib on Debian/Ubuntu systems)
48 # * numpy (python-numpy on Debian/Ubuntu systems)
49 # * argparse (by default in Python 2.7, requires python-argparse if
58 sys.stderr.write("You need python-matplotlib and python-numpy to generate build graphs\n")
59 exit(1)
62 # http://matplotlib.org/faq/usage_faq.html#what-is-a-backend),
73 'install-target', 'install-staging', 'install-images',
74 'install-host']
96 self.steps_duration[step] = self.steps_end[step] - self.steps_start[step]
109 # Generate an histogram of the time spent in each step of each
140 …plt.xticks(ind + .6, [p.name for p in data], rotation=-60, rotation_mode="anchor", fontsize=8, ha=…
152 plt.gcf().subplots_adjust(bottom=0.2, left=borders, right=1-borders)
186 # that account for less than 1% of the build time.
209 proptease.set_size('xx-small')
236 proptease.set_size('xx-small')
264 state = row[1].strip()
279 parser.add_argument("--type", '-t', metavar="GRAPH_TYPE",
280 help="Type of graph (histogram, pie-packages, pie-steps)")
281 parser.add_argument("--order", '-O', metavar="GRAPH_ORDER",
282 help="Ordering of packages: build or duration (for histogram only)")
283 parser.add_argument("--alternate-colors", '-c', action="store_true",
284 help="Use alternate colour-scheme")
285 parser.add_argument("--input", '-i', metavar="INPUT",
286 help="Input file (usually $(O)/build/build-time.log)")
287 parser.add_argument("--output", '-o', metavar="OUTPUT", required=True,
291 d = read_data(args.input) variable
298 if args.type == "histogram" or args.type is None:
300 pkg_histogram(d, args.output, args.order)
302 pkg_histogram(d, args.output, "name")
305 exit(1)
306 elif args.type == "pie-packages":
307 pkg_pie_time_per_package(d, args.output)
308 elif args.type == "pie-steps":
309 pkg_pie_time_per_step(d, args.output)
312 exit(1)