diff options
author | Namhyung Kim <[email protected]> | 2016-02-16 23:08:19 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-02-19 19:12:51 -0300 |
commit | 467ef10c68b90b940412390dcd14bbfe8cc40e73 (patch) | |
tree | 247dc0541876d4b11c6d0a56bb21d90313d9df0e /tools/perf/util/trace-event-scripting.c | |
parent | 43d0b97817a41b274aaec0476e912dae3ae1f93d (diff) |
perf hists browser: Fix percentage update on key press
Currently 'perf top --tui' decrements percentage of all entries on any
key press. This is because it adds total period as new samples are
added to hists. As perf-top does it currently but added samples are not
passed to the display thread, the percentages are decresing
continuously.
So separate total period stat into a different variable so that it
cannot affect the output total period. This new total period stats are
used only for calcualating callchain percent limit.
Signed-off-by: Namhyung Kim <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Wang Nan <[email protected]>
Fixes: 0f58474ec835 ("perf hists: Update hists' total period when adding entries")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions