1 | /* This file contains the definitions for timing variables used to -*- C -*- |
2 | measure run-time performance of the compiler. |
3 | |
4 | Copyright (C) 2002, 2007, 2009-2015, 2018-2019 Free Software |
5 | Foundation, Inc. |
6 | |
7 | Contributed by Akim Demaille <akim@freefriends.org>. |
8 | |
9 | This file is part of Bison, the GNU Compiler Compiler. |
10 | |
11 | This program is free software: you can redistribute it and/or modify |
12 | it under the terms of the GNU General Public License as published by |
13 | the Free Software Foundation, either version 3 of the License, or |
14 | (at your option) any later version. |
15 | |
16 | This program is distributed in the hope that it will be useful, |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | GNU General Public License for more details. |
20 | |
21 | You should have received a copy of the GNU General Public License |
22 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
23 | |
24 | /* This file contains timing variable definitions, used by timevar.h |
25 | and timevar.c. |
26 | |
27 | Syntax: |
28 | |
29 | DEFTIMEVAR (id, name) |
30 | |
31 | where ID is the enum value used to identify the timing |
32 | variable, and NAME is a character string describing its purpose. */ |
33 | |
34 | /* The total execution time. */ |
35 | DEFTIMEVAR (tv_total , "total time" ) |
36 | |
37 | /* Time spent in the reader. */ |
38 | DEFTIMEVAR (tv_reader , "reader" ) |
39 | DEFTIMEVAR (tv_scanning , "scanner" ) |
40 | DEFTIMEVAR (tv_parsing , "parser" ) |
41 | |
42 | /* Time spent handling the grammar. */ |
43 | DEFTIMEVAR (tv_reduce , "reducing the grammar" ) |
44 | DEFTIMEVAR (tv_sets , "computing the sets" ) |
45 | DEFTIMEVAR (tv_lr0 , "LR(0)" ) |
46 | DEFTIMEVAR (tv_lalr , "LALR(1)" ) |
47 | DEFTIMEVAR (tv_ielr_phase1 , "IELR(1) Phase 1" ) |
48 | DEFTIMEVAR (tv_ielr_phase2 , "IELR(1) Phase 2" ) |
49 | DEFTIMEVAR (tv_ielr_phase3 , "IELR(1) Phase 3" ) |
50 | DEFTIMEVAR (tv_ielr_phase4 , "IELR(1) Phase 4" ) |
51 | DEFTIMEVAR (tv_conflicts , "conflicts" ) |
52 | |
53 | /* Time spent outputting results. */ |
54 | DEFTIMEVAR (tv_report , "outputting report" ) |
55 | DEFTIMEVAR (tv_graph , "outputting graph" ) |
56 | DEFTIMEVAR (tv_xml , "outputting xml" ) |
57 | DEFTIMEVAR (tv_actions , "parser action tables" ) |
58 | DEFTIMEVAR (tv_parser , "outputting parser" ) |
59 | DEFTIMEVAR (tv_m4 , "running m4" ) |
60 | |
61 | /* Time spent by freeing the memory :). */ |
62 | DEFTIMEVAR (tv_free , "freeing" ) |
63 | |