path: root/tools/perf/perf.h
diff options
authorAndi Kleen <>2014-01-11 13:38:27 -0800
committerArnaldo Carvalho de Melo <>2014-01-13 10:07:03 -0300
commit6619a53ef7572b9eaf7aa71ff7f74c0d06b3817b (patch)
tree30cc3f9744834be9ca30959cf1308028c3a3aa2f /tools/perf/perf.h
parentd11416e76b3e2f60ed6cfa7c532d3b6777f66527 (diff)
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 <> Acked-by: Namhyung Kim <> Cc: Jiri Olsa <> Cc: Namhyung Kim <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/perf.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index b1cc84b01d5b..af1ce6e14a93 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -269,6 +269,7 @@ struct record_opts {
u64 user_interval;
u16 stack_dump_size;
bool sample_transaction;
+ unsigned initial_delay;