Skip to contentSkip to conversation

PATCH: perf script/python: add new compaction-times script

PATCH Tony Jones 1 participant 1 message May 26, 2015 perf events

lore
Share & tools
lore

Tony Jones

author
#0 lore raw

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).

Cc Arnaldo Carvalho de Melo <[email protected]>
tools/perf/scripts/python/bin/compaction-times-record new file +2 -0
new file mode 100755
index 0000000..2b7fc42
@@ -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
new file mode 100755
index 0000000..65c5b64
@@ -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