]> git.karo-electronics.de Git - linux-beck.git/commit
perf sched timehist: Show total scheduling time
authorNamhyung Kim <namhyung@kernel.org>
Thu, 22 Dec 2016 06:03:50 +0000 (15:03 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 Dec 2016 00:47:57 +0000 (21:47 -0300)
commit9396c9cb0d9534ca67bda8a34b2413a2ca1c67e9
tree1df5b1dead770526f9fe1f95cedc7681068d65ab
parent3705b97505bcbf6440f38119c0e7d6058f585b54
perf sched timehist: Show total scheduling time

Show length of analyzed sample time and rate of idle task running.
This also takes care of time range given by --time option.

  $ perf sched timehist -sI | tail
  Samples do not have callchains.
  Idle stats:
      CPU  0 idle for    930.316  msec  ( 92.93%)
      CPU  1 idle for    963.614  msec  ( 96.25%)
      CPU  2 idle for    885.482  msec  ( 88.45%)
      CPU  3 idle for    938.635  msec  ( 93.76%)

      Total number of unique tasks: 118
  Total number of context switches: 2337
             Total run time (msec): 3718.048
      Total scheduling time (msec): 1001.131  (x 4)

Suggested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20161222060350.17655-3-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-sched.c