PATCH: perf script/python: add new compaction-times script
Create a new script (compaction-times) to report time spent in mm compaction. Report times in nanoseconds (default) or microseconds (-u). Option -p will break down times by process id, -pv will further decompose by each compaction
entry/exit. Entries may be further filtered by pid, pid-range or comm
(regex).
Signed-off-by Tony Jones <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
tools/perf/scripts/python/bin/compaction-times-record new file +2 -0
@@ -0,0 +1,2 @@ +#!/bin/bash +perf record -e compaction:mm_compaction_begin -e compaction:mm_compaction_end -e compaction:mm_compaction_migratepages $@
tools/perf/scripts/python/bin/compaction-times-report new file +4 -0
@@ -0,0 +1,4 @@ +#!/bin/bash +#description: display time taken by mm compaction +#args: [-p|-pv] [-u] [pid|pid-range|comm-regex] +perf script -s "$PERF_EXEC_PATH"/scripts/python/compaction-times.py $@
tools/perf/scripts/python/compaction-times.py new file +222 -0
222 lines not on this page · raw message