diff options
author | Ian Rogers <irogers@google.com> | 2024-05-21 09:51:08 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-06-06 23:31:15 -0700 |
commit | aeefb04393f7525c0d5163f966f60d070b03ab99 (patch) | |
tree | ea3b23284f252675c1b7dd881820c614dc640a80 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0b90dfda222e38b7ca8dad6e098e36f5186f0b94 (diff) |
perf maps: Reduce sorting for overlapping mappings
When an 'after' map is generated the 'new' map must be before it so
terminate iterating and don't resort. If the entry 'pos' is entirely
overlapped by the 'new' mapping then don't remove and insert the
mapping, just replace - again to remove sorting.
For a perf report on a perf.data file containing overlapping mappings
the time numbers are:
Before:
real 0m9.856s
user 0m9.637s
sys 0m0.204s
After:
real 0m5.894s
user 0m5.650s
sys 0m0.231s
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@arm.com>
Cc: Steinar H . Gunderson <sesse@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240521165109.708593-3-irogers@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions