projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Gammelfix.
[libfirm]
/
ir
/
stat
/
statev.h
diff --git
a/ir/stat/statev.h
b/ir/stat/statev.h
index
af2c0f8
..
3f32e71
100644
(file)
--- a/
ir/stat/statev.h
+++ b/
ir/stat/statev.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-42,15
+42,17
@@
#define stat_ev_tim_push()
#define stat_ev_tim_pop(name)
#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_fobj(key, firm_object)
-#define stat_ev_ctx_push(key, value)
#define stat_ev_ctx_pop(key)
#define stat_ev_flush()
#else
#include <stdio.h>
#define stat_ev_ctx_pop(key)
#define stat_ev_flush()
#else
#include <stdio.h>
-#include "timing.h"
+#include "
stat_
timing.h"
extern void stat_ev_printf(char ev_type, const char *key, const char *fmt, ...);
extern void stat_ev_printf(char ev_type, const char *key, const char *fmt, ...);
@@
-122,7
+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_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_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
#define stat_ev(name) stat_ev_emit((name), 0.0)
#define stat_ev_cnt_decl(var) int stat_ev_cnt_var_ ## var = 0