#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.
#define HPP__COLOR_FN |
( |
|
_name, |
|
|
|
_field |
|
) |
| |
Value:static int perf_gtk__hpp_color_ ## _name(
struct perf_hpp *hpp, \
double
percent = 100.0 * he->stat._field / hists->stats.total_period; \
const char *markup; \
\
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>"); \
\
}
Definition at line 48 of file browser.c.