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>
This commit is contained in:
parent
c87097d39d
commit
cbb2e81e52
3 changed files with 60 additions and 7 deletions
|
@ -798,11 +798,11 @@ static void draw_process_bars(void)
|
|||
sample = c->samples;
|
||||
while (sample) {
|
||||
if (sample->type == TYPE_RUNNING)
|
||||
svg_sample(Y, sample->cpu, sample->start_time, sample->end_time);
|
||||
svg_running(Y, sample->cpu, sample->start_time, sample->end_time);
|
||||
if (sample->type == TYPE_BLOCKED)
|
||||
svg_box(Y, sample->start_time, sample->end_time, "blocked");
|
||||
svg_blocked(Y, sample->cpu, sample->start_time, sample->end_time);
|
||||
if (sample->type == TYPE_WAITING)
|
||||
svg_waiting(Y, sample->start_time, sample->end_time);
|
||||
svg_waiting(Y, sample->cpu, sample->start_time, sample->end_time);
|
||||
sample = sample->next;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue