aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-timechart.c
diff options
context:
space:
mode:
authorStanislav Fomichev <stfomichev@yandex-team.ru>2013-11-01 12:25:49 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-11-27 12:58:37 -0500
commitcbb2e81e5232b1bca5cd2aa1d7a7eb1cd30f8304 (patch)
tree073cc96a7374632ac1a991238ad9d29c31213b2b /tools/perf/builtin-timechart.c
parentc87097d39dae1c42a5068e00dd3b76a4162ee0fc (diff)
perf timechart: Group figures and add title with details
Add titles to figures so we can run SVG interactively in Firefox and check event details in the tooltips. This also aids exploring SVG with Inkscape because when user clicks on one part of logical figure, all parts are selected. It's also possible to read titles with Inkscape in the object details. Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1383323151-19810-6-git-send-email-stfomichev@yandex-team.ru Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-timechart.c')
-rw-r--r--tools/perf/builtin-timechart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c
index b3f175a30d94..6a848b8c4c16 100644
--- a/tools/perf/builtin-timechart.c
+++ b/tools/perf/builtin-timechart.c
@@ -798,11 +798,11 @@ static void draw_process_bars(void)
798 sample = c->samples; 798 sample = c->samples;
799 while (sample) { 799 while (sample) {
800 if (sample->type == TYPE_RUNNING) 800 if (sample->type == TYPE_RUNNING)
801 svg_sample(Y, sample->cpu, sample->start_time, sample->end_time); 801 svg_running(Y, sample->cpu, sample->start_time, sample->end_time);
802 if (sample->type == TYPE_BLOCKED) 802 if (sample->type == TYPE_BLOCKED)
803 svg_box(Y, sample->start_time, sample->end_time, "blocked"); 803 svg_blocked(Y, sample->cpu, sample->start_time, sample->end_time);
804 if (sample->type == TYPE_WAITING) 804 if (sample->type == TYPE_WAITING)
805 svg_waiting(Y, sample->start_time, sample->end_time); 805 svg_waiting(Y, sample->cpu, sample->start_time, sample->end_time);
806 sample = sample->next; 806 sample = sample->next;
807 } 807 }
808 808