Linux Perf
hists.c File Reference
#include "../evlist.h"
#include "../cache.h"
#include "../evsel.h"
#include "../sort.h"
#include "../hist.h"
#include "../helpline.h"
#include "../string2.h"
#include "gtk.h"
#include <signal.h>
Include dependency graph for hists.c:

Go to the source code of this file.

Macros

#define MAX_COLUMNS   32
 
#define __HPP_COLOR_PERCENT_FN(_type, _field)
 
#define __HPP_COLOR_ACC_PERCENT_FN(_type, _field)
 

Functions

static int __percent_color_snprintf (struct perf_hpp *hpp, const char *fmt,...)
 
void perf_gtk__init_hpp (void)
 
static void perf_gtk__add_callchain_flat (struct rb_root *root, GtkTreeStore *store, GtkTreeIter *parent, int col, u64 total)
 
static void perf_gtk__add_callchain_folded (struct rb_root *root, GtkTreeStore *store, GtkTreeIter *parent, int col, u64 total)
 
static void perf_gtk__add_callchain_graph (struct rb_root *root, GtkTreeStore *store, GtkTreeIter *parent, int col, u64 total)
 
static void perf_gtk__add_callchain (struct rb_root *root, GtkTreeStore *store, GtkTreeIter *parent, int col, u64 total)
 
static void on_row_activated (GtkTreeView *view, GtkTreePath *path, GtkTreeViewColumn *col __maybe_unused, gpointer user_data __maybe_unused)
 
static void perf_gtk__show_hists (GtkWidget *window, struct hists *hists, float min_pcnt)
 
static void perf_gtk__add_hierarchy_entries (struct hists *hists, struct rb_root *root, GtkTreeStore *store, GtkTreeIter *parent, struct perf_hpp *hpp, float min_pcnt)
 
static void perf_gtk__show_hierarchy (GtkWidget *window, struct hists *hists, float min_pcnt)
 
int perf_evlist__gtk_browse_hists (struct perf_evlist *evlist, const char *help, struct hist_browser_timer *hbt __maybe_unused, float min_pcnt)
 

Macro Definition Documentation

◆ __HPP_COLOR_ACC_PERCENT_FN

#define __HPP_COLOR_ACC_PERCENT_FN (   _type,
  _field 
)
Value:
static u64 he_get_acc_##_field(struct hist_entry *he) \
{ \
return he->stat_acc->_field; \
} \
\
static int perf_gtk__hpp_color_##_type(struct perf_hpp_fmt *fmt, \
struct perf_hpp *hpp, \
struct hist_entry *he) \
{ \
return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
}
int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he, hpp_field_fn get_field, const char *fmtstr, hpp_snprint_fn print_fn, bool fmt_percent)
Definition: hist.c:129
Definition: hist.h:234
Definition: sort.h:89
const char * fmt
Definition: dso.c:193
static int __percent_color_snprintf(struct perf_hpp *hpp, const char *fmt,...)
Definition: hists.c:14

Definition at line 55 of file hists.c.

◆ __HPP_COLOR_PERCENT_FN

#define __HPP_COLOR_PERCENT_FN (   _type,
  _field 
)
Value:
static u64 he_get_##_field(struct hist_entry *he) \
{ \
return he->stat._field; \
} \
\
static int perf_gtk__hpp_color_##_type(struct perf_hpp_fmt *fmt, \
struct perf_hpp *hpp, \
struct hist_entry *he) \
{ \
return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
}
Definition: hist.h:234
Definition: sort.h:89
const char * fmt
Definition: dso.c:193
int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he, hpp_field_fn get_field, const char *fmtstr, hpp_snprint_fn print_fn, bool fmt_percent)
Definition: hist.c:110
static int __percent_color_snprintf(struct perf_hpp *hpp, const char *fmt,...)
Definition: hists.c:14

Definition at line 41 of file hists.c.

◆ MAX_COLUMNS

#define MAX_COLUMNS   32

Definition at line 12 of file hists.c.

Function Documentation

◆ __percent_color_snprintf()

static int __percent_color_snprintf ( struct perf_hpp hpp,
const char *  fmt,
  ... 
)
static

Definition at line 14 of file hists.c.

Here is the call graph for this function:

◆ on_row_activated()

static void on_row_activated ( GtkTreeView *  view,
GtkTreePath *  path,
GtkTreeViewColumn *col  __maybe_unused,
gpointer user_data  __maybe_unused 
)
static

Definition at line 279 of file hists.c.

◆ perf_evlist__gtk_browse_hists()

int perf_evlist__gtk_browse_hists ( struct perf_evlist evlist,
const char *  help,
struct hist_browser_timer *hbt  __maybe_unused,
float  min_pcnt 
)

Definition at line 591 of file hists.c.

Here is the call graph for this function:

◆ perf_gtk__add_callchain()

static void perf_gtk__add_callchain ( struct rb_root *  root,
GtkTreeStore *  store,
GtkTreeIter *  parent,
int  col,
u64  total 
)
static

Definition at line 268 of file hists.c.

Here is the call graph for this function:

◆ perf_gtk__add_callchain_flat()

static void perf_gtk__add_callchain_flat ( struct rb_root *  root,
GtkTreeStore *  store,
GtkTreeIter *  parent,
int  col,
u64  total 
)
static

Definition at line 95 of file hists.c.

Here is the call graph for this function:

◆ perf_gtk__add_callchain_folded()

static void perf_gtk__add_callchain_folded ( struct rb_root *  root,
GtkTreeStore *  store,
GtkTreeIter *  parent,
int  col,
u64  total 
)
static

Definition at line 158 of file hists.c.

Here is the call graph for this function:

◆ perf_gtk__add_callchain_graph()

static void perf_gtk__add_callchain_graph ( struct rb_root *  root,
GtkTreeStore *  store,
GtkTreeIter *  parent,
int  col,
u64  total 
)
static

Definition at line 218 of file hists.c.

Here is the call graph for this function:

◆ perf_gtk__add_hierarchy_entries()

static void perf_gtk__add_hierarchy_entries ( struct hists hists,
struct rb_root *  root,
GtkTreeStore *  store,
GtkTreeIter *  parent,
struct perf_hpp hpp,
float  min_pcnt 
)
static

Definition at line 403 of file hists.c.

Here is the call graph for this function:

◆ perf_gtk__init_hpp()

void perf_gtk__init_hpp ( void  )

Definition at line 79 of file hists.c.

◆ perf_gtk__show_hierarchy()

static void perf_gtk__show_hierarchy ( GtkWidget *  window,
struct hists hists,
float  min_pcnt 
)
static

Definition at line 495 of file hists.c.

Here is the call graph for this function:

◆ perf_gtk__show_hists()

static void perf_gtk__show_hists ( GtkWidget *  window,
struct hists hists,
float  min_pcnt 
)
static

Definition at line 291 of file hists.c.

Here is the call graph for this function: