blob: 39bd0f28f211378f1f305f82d4ac7ce93a03973e [file] [log] [blame]
Jiri Olsaf7589902016-06-20 23:58:13 +02001#ifndef _PERF_UI_BROWSER_HISTS_H_
2#define _PERF_UI_BROWSER_HISTS_H_ 1
3
4#include "ui/browser.h"
5
6struct hist_browser {
7 struct ui_browser b;
8 struct hists *hists;
9 struct hist_entry *he_selection;
10 struct map_symbol *selection;
11 struct hist_browser_timer *hbt;
12 struct pstack *pstack;
13 struct perf_env *env;
14 int print_seq;
15 bool show_dso;
16 bool show_headers;
17 float min_pcnt;
18 u64 nr_non_filtered_entries;
19 u64 nr_hierarchy_entries;
20 u64 nr_callchain_rows;
Jiri Olsa5b91a862016-06-20 23:58:15 +020021
22 /* Get title string. */
23 int (*title)(struct hist_browser *browser,
24 char *bf, size_t size);
Jiri Olsaf7589902016-06-20 23:58:13 +020025};
26
Jiri Olsaa6ec8942016-06-20 23:58:17 +020027struct hist_browser *hist_browser__new(struct hists *hists);
Jiri Olsadabd2012016-06-20 23:58:14 +020028void hist_browser__delete(struct hist_browser *browser);
29int hist_browser__run(struct hist_browser *browser, const char *help);
Jiri Olsafcd86422016-06-20 23:58:18 +020030void hist_browser__init(struct hist_browser *browser,
31 struct hists *hists);
Jiri Olsaf7589902016-06-20 23:58:13 +020032#endif /* _PERF_UI_BROWSER_HISTS_H_ */