mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user