This patch set introduced a feature to analysis the samples in a specified time interval. After perf.data file was generated by perf record, the user could want to analysis a sub time interval of the whole record period. For some functions, the percent of its samples in a certain sub time interval is different from the percent in the total record period. Showing the scene in a certain time interval could allow users to more easily troubleshoot performance problems. The sample's timestamp are recorded in the perf.data file. The samples are sorted in the ordered_samples by timestamp while perf report processed them. So, it is easily to search the samples whose timestamp are in a certain time interval. We add 2 paramters --start and --end to specify the time interval. perf report --start xxxxx --end xxxxx The smallest granularity of time interval is millsecond. For example: If the whole record period of a perf.data file is 10000 to 20000, we can use the following command to analysis the samples between [15000, 16000). perf report --start 15000 --end 16000 The time is the uptime, it start timing from the system starts.
Cc: David Ahern <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Arjan van de Ven <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Yanmin Zhang <[email protected]> Cc: Wu Fengguang <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Chenggang Qin <[email protected]> Chenggang Qin (4): perf tools: add parameter 'start' & 'end' to perf report perf tools: relate 'start' & 'end' to perf_session perf tools: record min_timestamp of samples queue in ordered_samples perf tools: add the feature to assign analysis interval to perf report tools/perf/builtin-report.c | 14 ++++++++++++ tools/perf/util/session.c | 49 +++++++++++++++++++++++++++++++++++++++++- tools/perf/util/session.h | 3 ++ 3 files changed, 64 insertions(+), 2 deletions(-) -- 1.7.8.rc2.5.g815b -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

