Classes | Macros | Typedefs | Functions | Variables
stats.h File Reference

Statistics header. More...

#include "const.h"
#include "util.h"
#include <stdio.h>

Go to the source code of this file.

Classes

struct  Statistics
 

Macros

#define YBWC_STATS(x)
 
#define HASH_STATS(x)
 
#define HASH_COLLISIONS(x)
 
#define SEARCH_STATS(x)
 
#define SQUARE_STATS(x)
 
#define CUTOFF_STATS(x)
 
#define PROBCUT_STATS(x)
 
#define COUNT_NODES   7
 
#define SEARCH_UPDATE_INTERNAL_NODES()   (++search->n_nodes)
 
#define SEARCH_UPDATE_EVAL_NODES()   (++search->n_nodes)
 
#define SEARCH_UPDATE_ALL_NODES()   (++search->n_nodes)
 

Typedefs

typedef struct Statistics Statistics
 

Functions

void statistics_init (void)
 Intialization of the statistics. More...
 
void statistics_sum_nodes (struct Search *)
 Cumulate node counts from the last search. More...
 
void statistics_print (FILE *)
 Print statistics. More...
 

Variables

Statistics statistics
 

Detailed Description

Statistics header.

Date
1998 - 2017
Author
Richard Delorme
Version
4.4

Macro Definition Documentation

◆ COUNT_NODES

#define COUNT_NODES   7

how to count nodes...

◆ CUTOFF_STATS

#define CUTOFF_STATS (   x)

Cutoff statistics on/off

◆ HASH_COLLISIONS

#define HASH_COLLISIONS (   x)

Hash collision on/off

◆ HASH_STATS

#define HASH_STATS (   x)

Hash statistics on/off

◆ PROBCUT_STATS

#define PROBCUT_STATS (   x)

ProbCut statistics on/off

◆ SEARCH_STATS

#define SEARCH_STATS (   x)

Search statistics on/off

◆ SEARCH_UPDATE_ALL_NODES

#define SEARCH_UPDATE_ALL_NODES ( )    (++search->n_nodes)

more general node counter

◆ SEARCH_UPDATE_EVAL_NODES

#define SEARCH_UPDATE_EVAL_NODES ( )    (++search->n_nodes)

node counter for pattern changes

◆ SEARCH_UPDATE_INTERNAL_NODES

#define SEARCH_UPDATE_INTERNAL_NODES ( )    (++search->n_nodes)

node counter for internal nodes

◆ SQUARE_STATS

#define SQUARE_STATS (   x)

Square type statistics on/off

◆ YBWC_STATS

#define YBWC_STATS (   x)

YBWC statistics on/off

Typedef Documentation

◆ Statistics

typedef struct Statistics Statistics

Function Documentation

◆ statistics_init()

void statistics_init ( void  )

Intialization of the statistics.

◆ statistics_print()

void statistics_print ( FILE *  )

Print statistics.

◆ statistics_sum_nodes()

void statistics_sum_nodes ( Search search)

Cumulate node counts from the last search.

Parameters
searchLast search.

Variable Documentation

◆ statistics

Statistics statistics