hists.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _PERF_UI_BROWSER_HISTS_H_
  3. #define _PERF_UI_BROWSER_HISTS_H_ 1
  4. #include "ui/browser.h"
  5. struct annotation_options;
  6. struct 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. struct annotation_options *annotation_opts;
  15. int print_seq;
  16. bool show_dso;
  17. bool show_headers;
  18. float min_pcnt;
  19. u64 nr_non_filtered_entries;
  20. u64 nr_hierarchy_entries;
  21. u64 nr_callchain_rows;
  22. bool c2c_filter;
  23. /* Get title string. */
  24. int (*title)(struct hist_browser *browser,
  25. char *bf, size_t size);
  26. };
  27. struct hist_browser *hist_browser__new(struct hists *hists);
  28. void hist_browser__delete(struct hist_browser *browser);
  29. int hist_browser__run(struct hist_browser *browser, const char *help,
  30. bool warn_lost_event);
  31. void hist_browser__init(struct hist_browser *browser,
  32. struct hists *hists);
  33. #endif /* _PERF_UI_BROWSER_HISTS_H_ */