]> git.sesse.net Git - stockfish/commitdiff
Add simple debug hit rate counter
authorMarco Costalba <mcostalba@gmail.com>
Sat, 6 Sep 2008 10:22:10 +0000 (12:22 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 6 Sep 2008 10:22:10 +0000 (12:22 +0200)
Add a very simple debug framework to
measure the hit rate of a given condition.

Simply insert macro

dbg_hit_on(x);

Anywhere you want to compute hit rate of condition x
and then call, as example in poll(), function
dbg_print_hit_rate() to print current results.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found