Add mean calculation in debug tools

Another simple performance counter...

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2008-10-11 19:25:16 +02:00
parent 6a15df1d82
commit a6017aa728
3 changed files with 23 additions and 1 deletions
+6
View File
@@ -2172,6 +2172,12 @@ namespace {
{
lastInfoTime = t;
lock_grab(&IOLock);
if (dbg_show_mean)
dbg_print_mean();
if (dbg_show_hit_rate)
dbg_print_hit_rate();
std::cout << "info nodes " << nodes_searched() << " nps " << nps()
<< " time " << t << " hashfull " << TT.full() << std::endl;
lock_release(&IOLock);