Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
browser.c File Reference
#include "../evlist.h"
#include "../cache.h"
#include "../evsel.h"
#include "../sort.h"
#include "../hist.h"
#include "../helpline.h"
#include "gtk.h"
#include <signal.h>

Go to the source code of this file.

Macros

#define MAX_COLUMNS   32
 
#define HPP__COLOR_FN(_name, _field)
 

Functions

void perf_gtk__init_hpp (void)
 
int perf_evlist__gtk_browse_hists (struct perf_evlist *evlist, const char *help, void(*timer)(void *arg) __maybe_unused, void *arg __maybe_unused, int delay_secs __maybe_unused)
 

Macro Definition Documentation

#define HPP__COLOR_FN (   _name,
  _field 
)
Value:
static int perf_gtk__hpp_color_ ## _name(struct perf_hpp *hpp, \
struct hist_entry *he) \
{ \
struct hists *hists = he->hists; \
double percent = 100.0 * he->stat._field / hists->stats.total_period; \
const char *markup; \
int ret = 0; \
\
markup = perf_gtk__get_percent_color(percent); \
if (markup) \
ret += scnprintf(hpp->buf, hpp->size, "%s", markup); \
ret += scnprintf(hpp->buf + ret, hpp->size - ret, "%6.2f%%", percent); \
if (markup) \
ret += scnprintf(hpp->buf + ret, hpp->size - ret, "</span>"); \
\
return ret; \
}

Definition at line 48 of file browser.c.

#define MAX_COLUMNS   32

Definition at line 11 of file browser.c.

Function Documentation

int perf_evlist__gtk_browse_hists ( struct perf_evlist evlist,
const char help,
void(*)(void *arg) __maybe_unused  timer,
void *arg  __maybe_unused,
int delay_secs  __maybe_unused 
)

Definition at line 238 of file browser.c.

void perf_gtk__init_hpp ( void  )

Definition at line 75 of file browser.c.