X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=8bf09a86fae8a2d46a8d086f31eb4c6ce30f2308;hp=d6290450ad5d17f5e4ba294d489c0c642365eb73;hb=9ae2b6923504064da184d08b888fffb328818543;hpb=bb751d6c890f5c50c642366d601740366cfae8d0 diff --git a/src/misc.h b/src/misc.h index d6290450..8bf09a86 100644 --- a/src/misc.h +++ b/src/misc.h @@ -6,12 +6,12 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + Glaurung is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -56,5 +56,13 @@ extern int get_system_time(); extern int cpu_count(); extern int Bioskey(); +//// +//// Debug +//// +extern long dbg_cnt0; +extern long dbg_cnt1; +extern void dbg_print_hit_rate(); + +#define dbg_hit_on(x) { dbg_cnt0++; if (x) dbg_cnt1++; } #endif // !defined(MISC_H_INCLUDED)