• Jiri Olsa's avatar
    perf diff: Add ratio computation way to compare hist entries · 7aaf6b35
    Jiri Olsa authored
    Adding -c option to select computation method with the current 'Delta'
    computation as default. Current possible values are of this option are:
    'delta' and 'ratio'.
    
    Adding 'ratio' as new computation way to compare hist entries.  If
    specified the 'Ratio' column is displayed with value 'r' computed as:
    
      r = A->period / B->period
    
    with:
      - A/B being matching hist entry from first/second file specified
        (or perf.data/perf.data.old) respectively.
      - period being the hist entry period value
    Signed-off-by: default avatarJiri Olsa <jolsa@redhat.com>
    Cc: Andi Kleen <andi@firstfloor.org>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1349448287-18919-3-git-send-email-jolsa@redhat.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    7aaf6b35
builtin-diff.c 9.23 KB