perf diff: Add -F option to display formula for computation
Adding -F option to display the formula for specified computation. This is mainly to facilitate debugging, but can be useful anyway. Signed-off-by: Jiri 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-7-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
61949b212e
commit
ed279da2fc
@@ -145,6 +145,7 @@ enum {
|
||||
PERF_HPP__RATIO,
|
||||
PERF_HPP__WEIGHTED_DIFF,
|
||||
PERF_HPP__DISPL,
|
||||
PERF_HPP__FORMULA,
|
||||
|
||||
PERF_HPP__MAX_INDEX
|
||||
};
|
||||
@@ -210,4 +211,5 @@ unsigned int hists__sort_list_width(struct hists *self);
|
||||
double perf_diff__compute_delta(struct hist_entry *he);
|
||||
double perf_diff__compute_ratio(struct hist_entry *he);
|
||||
s64 perf_diff__compute_wdiff(struct hist_entry *he);
|
||||
int perf_diff__formula(char *buf, size_t size, struct hist_entry *he);
|
||||
#endif /* __PERF_HIST_H */
|
||||
|
Reference in New Issue
Block a user