libFirm
Loading...
Searching...
No Matches
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
14#include "begin.h"
15
38FIRM_API void stat_ev_ctx_push_fmt(const char *key, const char *fmt, ...);
40FIRM_API void stat_ev_ctx_push_str(const char *key, const char *str);
42FIRM_API void stat_ev_ctx_pop(const char *key);
44FIRM_API void stat_ev_dbl(const char *name, double value);
46FIRM_API void stat_ev_int(const char *name, int value);
48FIRM_API void stat_ev_ull(const char *name, unsigned long long value);
50FIRM_API void stat_ev(const char *name);
51
63FIRM_API void stat_ev_begin(const char *filename_prefix, const char *filter);
64
68FIRM_API void stat_ev_end(void);
69
73FIRM_API int stat_ev_enabled;
74
77#include "end.h"
78
79#endif
int stat_ev_enabled
This variable indicates whether statev output is enabled.
Definition statev.h:73
void stat_ev_ctx_push_fmt(const char *key, const char *fmt,...)
Pushes a new setting on the context stack.
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_begin(const char *filename_prefix, const char *filter)
Initialize the stat ev machinery.
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.
void stat_ev(const char *name)
Emits a statistic event (without an additional value).
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_int(const char *name, int value)
Emits a statistic event with an integer value.