X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fstatev.c;h=e999bcf3a6f201eb524f6d2ce74060453cedcc68;hb=3da5ed2598245b896255bc444aaa1768f6098cfe;hp=52a7f8457ef6774cc79f304b0752b9a05948980d;hpb=bb9f2e36362333c6635b89f5258171b06c786608;p=libfirm diff --git a/ir/stat/statev.c b/ir/stat/statev.c index 52a7f8457..e999bcf3a 100644 --- a/ir/stat/statev.c +++ b/ir/stat/statev.c @@ -39,6 +39,8 @@ #include "config.h" +#if defined(FIRM_STATISTICS) && !defined(DISABLE_STATEV) + #ifdef HAVE_REGEX_H #define FIRM_HAVE_REGEX #endif @@ -63,12 +65,10 @@ static FILE* stat_ev_file = NULL; #endif /* FIRM_HAVE_LIBZ */ -int stat_ev_enabled = 0; -int stat_ev_timer_sp = 0; -timing_ticks_t stat_ev_timer_elapsed[MAX_TIMER]; -timing_ticks_t stat_ev_timer_start[MAX_TIMER]; -timing_sched_env_t stat_ev_sched_rt; -timing_sched_env_t stat_ev_sched_normal; +int stat_ev_enabled = 0; +int stat_ev_timer_sp = 0; +timing_ticks_t stat_ev_timer_elapsed[MAX_TIMER]; +timing_ticks_t stat_ev_timer_start[MAX_TIMER]; #ifdef FIRM_HAVE_REGEX #include @@ -139,8 +139,6 @@ void stat_ev_begin(const char *prefix, const char *filt) } stat_ev_enabled = stat_ev_file != NULL; - timing_sched_get(&stat_ev_sched_normal); - timing_sched_prepare_max_prio(&stat_ev_sched_rt); } void stat_ev_end(void) @@ -154,3 +152,5 @@ void stat_ev_end(void) #endif } } + +#endif