Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | 4 | public function getString(): string |
|
19 | { |
||
20 | 4 | $r = 'Benchmark:' . PHP_EOL; |
|
21 | /** @var BenchmarkFunction $function */ |
||
22 | 4 | foreach ($this->report->getFunctions() as $name => $function) { |
|
23 | 4 | $r .= (new BenchmarkFunctionFormatter($function))->getString(); |
|
24 | } |
||
25 | return |
||
26 | 4 | $r . PHP_EOL . |
|
27 | 4 | $this->report->getMemoryUsageReport() . PHP_EOL . |
|
28 | 4 | $this->report->getProfiler()->getReport(); |
|
29 | } |
||
31 |