libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
statev.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5 
11 #ifndef FIRM_STATEVENT_H
12 #define FIRM_STATEVENT_H
13 
36 FIRM_API void stat_ev_ctx_push_fmt(const char *key, const char *fmt, ...);
38 FIRM_API void stat_ev_ctx_push_str(const char *key, const char *str);
40 FIRM_API void stat_ev_ctx_pop(const char *key);
42 FIRM_API void stat_ev_dbl(const char *name, double value);
44 FIRM_API void stat_ev_int(const char *name, int value);
46 FIRM_API void stat_ev_ull(const char *name, unsigned long long value);
48 FIRM_API void stat_ev(const char *name);
49 
61 FIRM_API void stat_ev_begin(const char *filename_prefix, const char *filter);
62 
66 FIRM_API void stat_ev_end(void);
67 
71 FIRM_API int stat_ev_enabled;
72 
75 #endif
void stat_ev_begin(const char *filename_prefix, const char *filter)
Initialize the stat ev machinery.
void stat_ev_ctx_push_fmt(const char *key, const char *fmt,...)
Pushes a new setting on the context stack.
void stat_ev(const char *name)
Emits a statistic event (without an additional value).
int stat_ev_enabled
This variable indicates whether statev output is enabled.
Definition: statev.h:71
void stat_ev_int(const char *name, int value)
Emits a statistic event with an integer value.
void stat_ev_ctx_push_str(const char *key, const char *str)
Pushes a new setting with a string value on the context stack.
void stat_ev_end(void)
Shuts down stat ev machinery.
void stat_ev_ull(const char *name, unsigned long long value)
Emits a statistic event with an unsigned long long value.
void stat_ev_dbl(const char *name, double value)
Emits a statistic event with a double value.
void stat_ev_ctx_pop(const char *key)
Pops last setting from context stack.