More statistics
[libfirm] / ir / be / bestatevent.h
1 /**
2  * Statistic events
3  * @date 3.9.2006
4  * @author Sebastian Hack
5  */
6
7 #ifndef _BESTATEVENT_H
8 #define _BESTATEVENT_H
9
10 #include <stdio.h>
11
12 #define BE_STAT_EV_N_INSN                    "n_insn"
13 #define BE_STAT_EV_PHI_BEFORE_SPILL          "phi_before_spill"
14 #define BE_STAT_EV_PHI_AFTER_SPILL           "phi_after_spill"
15
16 void be_stat_ev_push(const char **tags, int n_tags, FILE *f);
17 void be_stat_ev_pop(void);
18
19 void be_stat_ev(const char *ev, int value);
20 void be_stat_ev_dbl(const char *ev, double value);
21 void be_stat_ev_ull(const char *ev, unsigned long long value);
22
23 int be_stat_ev_is_active(void);
24
25 #endif /* _BESTATEVENT_H */