1 | <?php |
||
13 | class CollStats extends Stage |
||
14 | { |
||
15 | public const LATENCY_STATS_NONE = 0; |
||
16 | public const LATENCY_STATS_SIMPLE = 1; |
||
17 | public const LATENCY_STATS_HISTOGRAMS = 2; |
||
18 | |||
19 | /** @var int */ |
||
20 | private $latencyStats = self::LATENCY_STATS_NONE; |
||
21 | |||
22 | /** @var bool */ |
||
23 | private $storageStats = false; |
||
24 | |||
25 | 5 | public function __construct(Builder $builder) |
|
29 | |||
30 | /** |
||
31 | * Adds latency statistics to the return document. |
||
32 | */ |
||
33 | 3 | public function showLatencyStats(bool $histograms = false) : self |
|
39 | |||
40 | /** |
||
41 | * Adds storage statistics to the return document. |
||
42 | */ |
||
43 | 2 | public function showStorageStats() : self |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 5 | public function getExpression() : array |
|
66 | } |
||
67 |