Add evaluation tracing code

This patch is based on Justin Blanchard's original
work and allows to breakdown evaluation in its sub terms and
show to the user.

Tracing code has zero speed impact when not used.

Note that tracing code is not thread-safe, but this
should not be a problem given the typical usage scenario.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-02-26 14:09:58 +01:00
parent dd718d92a7
commit bd33766da0
3 changed files with 150 additions and 23 deletions

View File

@@ -25,6 +25,7 @@
class Position;
extern Value evaluate(const Position& pos, Value& margin);
extern std::string trace_evaluate(const Position& pos);
extern void init_eval(int threads);
extern void quit_eval();
extern void read_evaluation_uci_options(Color sideToMove);