File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,17 @@ public function getGenerateBaselineFile(): ?string
90
90
91
91
public function handleReturn (int $ exitCode , ?int $ peakMemoryUsageBytes , float $ analysisStartTime ): int
92
92
{
93
- if ($ peakMemoryUsageBytes !== null && $ this ->getErrorOutput ()->isVerbose ()) {
93
+ if ($ this ->getErrorOutput ()->isVerbose ()) {
94
94
$ this ->getErrorOutput ()->writeLineFormatted (sprintf (
95
- 'Used memory : %s ' ,
96
- BytesHelper:: bytes ( max ( memory_get_peak_usage ( true ), $ peakMemoryUsageBytes )),
95
+ 'Elapsed time : %s ' ,
96
+ $ this -> formatDuration (( int ) round ( microtime ( true ) - $ analysisStartTime )),
97
97
));
98
98
}
99
99
100
- if ($ this ->getErrorOutput ()->isDebug ()) {
100
+ if ($ peakMemoryUsageBytes !== null && $ this ->getErrorOutput ()->isVerbose ()) {
101
101
$ this ->getErrorOutput ()->writeLineFormatted (sprintf (
102
- 'Analysis time : %s ' ,
103
- $ this -> formatDuration (( int ) round ( microtime ( true ) - $ analysisStartTime )),
102
+ 'Used memory : %s ' ,
103
+ BytesHelper:: bytes ( max ( memory_get_peak_usage ( true ), $ peakMemoryUsageBytes )),
104
104
));
105
105
}
106
106
You can’t perform that action at this time.
0 commit comments