From: Marco Costalba Date: Sat, 6 Sep 2008 10:22:10 +0000 (+0200) Subject: Add simple debug hit rate counter X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=61f41a057dd84a38e5cc9c58b37a30bfa00e253a;hp=61f41a057dd84a38e5cc9c58b37a30bfa00e253a;ds=sidebyside Add simple debug hit rate counter 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 ---