libFirm
firmstat.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
3  *
4  * This file is part of libFirm.
5  *
6  * This file may be distributed and/or modified under the terms of the
7  * GNU General Public License version 2 as published by the Free Software
8  * Foundation and appearing in the file LICENSE.GPL included in the
9  * packaging of this file.
10  *
11  * Licensees holding valid libFirm Professional Edition licenses may use
12  * this file in accordance with the libFirm Commercial License.
13  * Agreement provided with the Software.
14  *
15  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE.
18  */
19 
25 #ifndef FIRM_STAT_FIRMSTAT_H
26 #define FIRM_STAT_FIRMSTAT_H
27 
28 #include "irhooks.h"
29 #include "begin.h"
30 
35  FIRMSTAT_ENABLED = 0x00000001,
36  FIRMSTAT_PATTERN_ENABLED = 0x00000002,
37  FIRMSTAT_COUNT_STRONG_OP = 0x00000004,
38  FIRMSTAT_COUNT_DAG = 0x00000008,
39  FIRMSTAT_COUNT_DELETED = 0x00000010,
40  FIRMSTAT_COUNT_SELS = 0x00000020,
41  FIRMSTAT_COUNT_CONSTS = 0x00000040,
42  FIRMSTAT_CSV_OUTPUT = 0x10000000
43 };
44 
49  FS_OPT_NEUTRAL_0 = HOOK_OPT_LAST,
161  FS_OPT_MAX
162 };
163 
171 FIRM_API void stat_dump_snapshot(const char *fname, const char *phase);
172 
183  const char *name, const char *fname, const char *phase);
184 
191 FIRM_API void firm_init_stat(unsigned enable_options);
192 
196 FIRM_API void stat_term(void);
197 
201 FIRM_API int stat_is_active(void);
202 
203 #include "end.h"
204 
205 #endif