]> git.baikalelectronics.ru Git - kernel.git/commit
perf record: Add --initial-delay option
authorAndi Kleen <ak@linux.intel.com>
Sat, 11 Jan 2014 21:38:27 +0000 (13:38 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 13 Jan 2014 13:07:03 +0000 (10:07 -0300)
commitd61d1f6e7288910af78df85115be70fb5e9f6d7e
tree30cc3f9744834be9ca30959cf1308028c3a3aa2f
parent52173f1bd22ba7d4d16cf363b761173b8a451678
perf record: Add --initial-delay option

perf stat has a --delay option to delay measuring the workload.

This is useful to skip measuring the startup phase of the program, which
is often very different from the main workload.

The same is useful for perf record when sampling.

--no-delay was already taken, so add a --initial-delay
to perf record too.
-D was already taken for record, so there is only a long option.

v2: Don't disable group members (Namhyung Kim)
v3: port to latest perf/core
    rename to --initial-delay to avoid conflict with --no-delay

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1389476307-2124-1-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-record.txt
tools/perf/builtin-record.c
tools/perf/perf.h
tools/perf/util/evsel.c