diff options
| author | Namhyung Kim <namhyung@kernel.org> | 2022-11-07 13:33:12 -0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-11-14 13:21:19 -0300 |
| commit | 1cc7642abba7b281ecd836bfb56fc6dedac32555 (patch) | |
| tree | b48bf9ff803e9dd071508aaa530068acbd0bf9de /tools/perf/scripts/python | |
| parent | perf stat: Do not indent headers for JSON (diff) | |
| download | linux-1cc7642abba7b281ecd836bfb56fc6dedac32555.tar.gz linux-1cc7642abba7b281ecd836bfb56fc6dedac32555.zip | |
perf stat: Add header for interval in JSON output
It missed to print a matching header line for intervals.
Before:
# perf stat -a -e cycles,instructions --metric-only -j -I 500
{"unit" : "insn per cycle"}
{"interval" : 0.500544283}{"metric-value" : "1.96"}
^C
After:
# perf stat -a -e cycles,instructions --metric-only -j -I 500
{"unit" : "sec"}{"unit" : "insn per cycle"}
{"interval" : 0.500515681}{"metric-value" : "2.31"}
^C
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Link: https://lore.kernel.org/r/20221107213314.3239159-8-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
