diff options
author | Stanislav Fomichev <stfomichev@yandex-team.ru> | 2014-01-20 06:39:38 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-01-20 14:19:08 -0500 |
commit | 3415d8b851307c75a1e8aa16030db9172306df78 (patch) | |
tree | 0144b9fab4377f16b1381480d239a9d02b598869 /tools/perf | |
parent | 45e6af06367e7b2eb8dc49671092462d8f8a5f47 (diff) |
perf timechart: Fix wrong SVG height
If we call perf timechart with -p 0 arguments, it means we don't want
any tasks related data. It works, but space for tasks data is reserved
in the generated SVG. Remove this unused empty space via passing 0 as
count to the open_svg.
Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@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/1390217980-22424-2-git-send-email-stfomichev@yandex-team.ru
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/builtin-timechart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index 652af0b66a62..25526d6eae59 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -1045,6 +1045,9 @@ static void write_svg_file(struct timechart *tchart, const char *filename) | |||
1045 | thresh /= 10; | 1045 | thresh /= 10; |
1046 | } while (!process_filter && thresh && count < tchart->proc_num); | 1046 | } while (!process_filter && thresh && count < tchart->proc_num); |
1047 | 1047 | ||
1048 | if (!tchart->proc_num) | ||
1049 | count = 0; | ||
1050 | |||
1048 | open_svg(filename, tchart->numcpus, count, tchart->first_time, tchart->last_time); | 1051 | open_svg(filename, tchart->numcpus, count, tchart->first_time, tchart->last_time); |
1049 | 1052 | ||
1050 | svg_time_grid(); | 1053 | svg_time_grid(); |