Papageno
An Advanced Pattern Matching Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ppg_statistics.h
1 /* Copyright 2017 noseglasses <shinynoseglasses@gmail.com>
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef PPG_STATISTICS_H
18 #define PPG_STATISTICS_H
19 
20 #include "ppg_settings.h"
21 
22 #if PPG_HAVE_STATISTICS
23 
24 typedef struct {
25 
26  uint32_t n_nodes_visited;
27  uint32_t n_token_checks;
28  uint32_t n_furcations;
29  uint32_t n_reversions;
30 
31 } PPG_Statistics;
32 
38 void ppg_statistics_get(PPG_Statistics *stat);
39 
44 void ppg_statistics_clear(PPG_Statistics *stat);
45 
46 #endif
47 
48 #endif