X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fstatev.h;h=7655394a19d58b6575fc9a9e1d1c5f01f8a16a4a;hb=45ecc187cee7107c83c1f9618a1e1e586df73644;hp=4357c6d3451d39464c5f1e883a4bbad526e01e5e;hpb=14df42a9949f65a1e76aca92926d11edd020cfbf;p=libfirm diff --git a/ir/stat/statev.h b/ir/stat/statev.h index 4357c6d34..7655394a1 100644 --- a/ir/stat/statev.h +++ b/ir/stat/statev.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -28,28 +28,31 @@ #ifndef FIRM_STATEVENT_H #define FIRM_STATEVENT_H -#ifndef FIRM_STATISTICS +#if !defined(FIRM_STATISTICS) || defined(DISABLE_STATEV) #define stat_ev_do(expr) #define stat_ev_if if (0) #define stat_ev_dbl(name, val) +#define stat_ev_int(name, val) #define stat_ev(name) #define stat_ev_cnt_decl(var) #define stat_ev_cnt_inc(var) #define stat_ev_cnt_done(name, var) -#define stat_ev_tim_push(var) +#define stat_ev_tim_push() #define stat_ev_tim_pop(name) +#define stat_ev_ctx_push(key) +#define stat_ev_ctx_push_str(key, str) +#define stat_ev_ctx_push_fmt(key, fmt, value) #define stat_ev_ctx_push_fobj(key, firm_object) -#define stat_ev_ctx_push(key, value) #define stat_ev_ctx_pop(key) #define stat_ev_flush() #else #include -#include "timing.h" +#include "stat_timing.h" extern void stat_ev_printf(char ev_type, const char *key, const char *fmt, ...); @@ -121,6 +124,7 @@ static INLINE __attribute__((unused)) void stat_ev_tim_pop(const char *name) { #define stat_ev_ctx_push(key) stat_ev_ctx_push_fmt((key), "X", NULL) #define stat_ev_dbl(name, val) stat_ev_emit((name), (val)) +#define stat_ev_int(name, val) stat_ev_dbl((name), (double) (val)) #define stat_ev(name) stat_ev_emit((name), 0.0) #define stat_ev_cnt_decl(var) int stat_ev_cnt_var_ ## var = 0