Add gather_statistics command that allows gathering statistics from a .bin or .binpack file. Initially only support position count.

This commit is contained in:
Tomasz Sobczyk
2021-02-28 15:21:49 +01:00
committed by nodchip
parent b68cd36708
commit 0ddad45ab2
5 changed files with 240 additions and 1 deletions

15
docs/stats.md Normal file
View File

@@ -0,0 +1,15 @@
# Stats
`gather_statistics` command allows gathering various statistics from a .bin or a .binpack file. The syntax is `gather_statistics (GROUP)* input_file FILENAME`. There can be many groups specified. Any statistic gatherer that belongs to at least one of the specified groups will be used.
Simplest usage: `stockfish.exe gather_statistics all input_file a.binpack`
## Groups
`all`
- A special group designating all statistics gatherers available.
`position_count`
- `struct PositionCounter` - the total number of positions in the file.