lkml.org 
[lkml]   [2014]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/8] perf diff: Add --percentage option
On Mon, Feb 10, 2014 at 11:47:22AM +0900, Namhyung Kim wrote:
> The --percentage option is for controlling overhead percentage
> displayed. It can only receive either of "relative" or "absolute" and
> affects -c delta output only.
>
> For more information, please see previous commit same thing done to
> "perf report".
>
> Cc: Jiri Olsa <jolsa@redhat.com>
> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> ---
> tools/perf/Documentation/perf-diff.txt | 21 +++++++++++++---
> tools/perf/builtin-diff.c | 46 +++++++++++++++++++++++++++++-----
> 2 files changed, 58 insertions(+), 9 deletions(-)

SNIP

> @@ -259,11 +263,18 @@ static s64 compute_wdiff(struct hist_entry *he, struct hist_entry *pair)
> static int formula_delta(struct hist_entry *he, struct hist_entry *pair,
> char *buf, size_t size)
> {
> + u64 he_total = he->hists->stats.total_period;
> + u64 pair_total = pair->hists->stats.total_period;
> +
> + if (symbol_conf.filter_relative) {
> + he_total = he->hists->stats.total_filtered_period;
> + pair_total = pair->hists->stats.total_filtered_period;
> + }

and another ;-)

jirka


\
 
 \ /
  Last update: 2014-02-20 12:21    [W:0.105 / U:1.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site