From: Michael Beck Date: Mon, 6 Jun 2005 12:28:50 +0000 (+0000) Subject: renamed stat_term() into stat_dump_snapshot() X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f2d7c9ddbf88bd69064dc2efbe0f4ffc214d5531;p=libfirm renamed stat_term() into stat_dump_snapshot() added option for constant value statistics [r5955] --- diff --git a/ir/stat/firmstat.h b/ir/stat/firmstat.h index a30ef26ee..8de2f6c6e 100644 --- a/ir/stat/firmstat.h +++ b/ir/stat/firmstat.h @@ -28,18 +28,17 @@ enum firmstat_options_t { FIRMSTAT_COUNT_DAG = 0x00000008, /**< if set, count DAG statistics */ FIRMSTAT_COUNT_DELETED = 0x00000010, /**< if set, count deleted graphs */ FIRMSTAT_COUNT_SELS = 0x00000020, /**< if set, count Sel(Sel(..)) differently */ + FIRMSTAT_COUNT_CONSTS = 0x00000040, /**< if set, count Const statistics */ FIRMSTAT_CSV_OUTPUT = 0x10000000 /**< CSV output of some mini-statistic */ }; /** - * Finish the statistics. + * Dump a snapshot of the statistic values. * Never called from libFirm should be called from user. * * @param name basename of the statistic output file */ -void stat_finish(const char *name); - -#ifdef FIRM_STATISTICS +void stat_dump_snapshot(const char *name); /** * initialize the statistics module. @@ -48,10 +47,9 @@ void stat_finish(const char *name); */ void init_stat(unsigned enable_options); -#else - -#define init_stat(enable_options) - -#endif /* FIRM_STATISTICS */ +/** + * terminates the statustics module, frees all memory + */ +void stat_term(void); #endif /* _FIRMSTAT_H_ */