/*** Timing macros: nothing to do in RL. Actually do the job and shutup ***/
+void gras_emul_init(void) {}
+void gras_emul_exit(void) {}
+
int gras_bench_always_begin(const char *location,int line) {
return 0;
}
return 0;
}
-void gras_chrono_init(void) {}
-void gras_chrono_exit(void) {}
-
/*** Conditional execution support ***/
int gras_if_RL(void) {
static char* locbuf = NULL;
static int locbufsize;
+void gras_emul_init(void)
+{
+ if(!benchmark_set) {
+ benchmark_set = xbt_dict_new();
+ timer = xbt_os_timer_new();
+ }
+}
+
+void gras_emul_exit(void) {
+ if (locbuf) free(locbuf);
+ xbt_dict_free(&benchmark_set);
+ xbt_os_timer_free(timer);
+}
+
+
static void store_in_dict(xbt_dict_t dict, const char *key, double value)
{
double *ir = NULL;
return 0;
}
-void gras_chrono_init(void)
-{
- if(!benchmark_set) {
- benchmark_set = xbt_dict_new();
- timer = xbt_os_timer_new();
- }
-}
-
-void gras_chrono_exit(void) {
- if (locbuf) free(locbuf);
- xbt_dict_free(&benchmark_set);
- xbt_os_timer_free(timer);
-}
/*** Conditional execution support ***/
#define GRAS_MODINTER_H
/* modules initialization functions */
-void gras_chrono_init(void);
-void gras_chrono_exit(void);
+void gras_emul_init(void);
+void gras_emul_exit(void);
void gras_msg_register(void);
void gras_msg_init(void);