diff options
| author | Namhyung Kim <namhyung@kernel.org> | 2022-11-07 13:33:09 -0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-11-14 13:21:19 -0300 |
| commit | f4e55f88da923f39f0b76edc3da3c52d0b72d429 (patch) | |
| tree | 7c7ac1c477aa2d238936a470ba0574199f5f706b /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | perf stat: Clear screen only if output file is a tty (diff) | |
| download | linux-f4e55f88da923f39f0b76edc3da3c52d0b72d429.tar.gz linux-f4e55f88da923f39f0b76edc3da3c52d0b72d429.zip | |
perf stat: Move common code in print_metric_headers()
The struct perf_stat_output_ctx is set in a loop with the same values.
Move the code out of the loop and keep the loop minimal.
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-5-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
