Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | final class ResourceUtilization |
||
13 | { |
||
14 | private float $startTime; |
||
15 | |||
16 | private float $endTime; |
||
17 | |||
18 | private float $peakMemoryUsage; |
||
19 | |||
20 | public function start(): void |
||
21 | { |
||
22 | $this->startTime = microtime(true); |
||
23 | } |
||
24 | |||
25 | public function stop(): void |
||
26 | { |
||
27 | $this->endTime = microtime(true); |
||
28 | $this->peakMemoryUsage = memory_get_peak_usage(true); |
||
29 | } |
||
30 | |||
31 | public function getPerformanceMetrics(): PerformanceMetricsDTO |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | private function getExecutionTime(): float |
||
42 | } |
||
43 | |||
44 | private function getPeakMemoryUsage(): float |
||
49 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths