]> git.baikalelectronics.ru Git - kernel.git/commit
perf util: Make the timechart SVG width dynamic
authorArjan van de Ven <arjan@linux.intel.com>
Sun, 20 Sep 2009 16:14:16 +0000 (18:14 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 20 Sep 2009 17:37:35 +0000 (19:37 +0200)
commita9cec6bfbc221948d15dfd98e10fc0a182c347bc
tree72412b375275b943fc417c7e3c55bf50833e9683
parenta2cab28b1394b69252e810a641df5f6219a680cf
perf util: Make the timechart SVG width dynamic

This patch adds a command line option for timechart that allows the
user to specify the width of the SVG file.

This patch also makes sure that each second of recording has at
least 200 units (pixels at 96 DPI) of width.  This impacts
recordings longer than 5 seconds; recordings shorter than 5 second
will scale up to have a width of 1000 units for the whole recording
(as before).

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20090920181416.69570c5d@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/Documentation/perf-timechart.txt
tools/perf/builtin-timechart.c
tools/perf/util/svghelper.c
tools/perf/util/svghelper.h