@@ -94,12 +94,12 @@ public function requestInfo($request, $verbosity = null)
9494 $ terminalWidth = $ this ->getTerminalWidth ();
9595
9696 $ url = parse_url ($ request ['url ' ], PHP_URL_PATH ) ?: '/ ' ;
97-
9897 $ duration = number_format (round ($ request ['duration ' ], 2 ), 2 , '. ' , '' );
98+ $ memory = number_format (round ($ request ['memory ' ] ?? memory_get_usage () / 1024 / 1204 , 2 ), 2 , '. ' , '' );
9999
100100 ['method ' => $ method , 'statusCode ' => $ statusCode ] = $ request ;
101101
102- $ dots = str_repeat ('. ' , max ($ terminalWidth - strlen ($ method .$ url .$ duration ) - 16 , 0 ));
102+ $ dots = str_repeat ('. ' , max ($ terminalWidth - strlen ($ method .$ url .$ duration. $ memory ) - 19 , 0 ));
103103
104104 if (empty ($ dots ) && ! $ this ->output ->isVerbose ()) {
105105 $ url = substr ($ url , 0 , $ terminalWidth - strlen ($ method .$ duration ) - 15 - 3 ).'... ' ;
@@ -108,7 +108,7 @@ public function requestInfo($request, $verbosity = null)
108108 }
109109
110110 $ this ->output ->writeln (sprintf (
111- ' <fg=%s;options=bold>%s </> <fg=cyan;options=bold>%s</> <options=bold>%s</><fg=#6C7280> %s%s ms</> ' ,
111+ ' <fg=%s;options=bold>%s </> <fg=cyan;options=bold>%s</> <options=bold>%s</><fg=#6C7280> %s%s mb %s ms</> ' ,
112112 match (true ) {
113113 $ statusCode >= 500 => 'red ' ,
114114 $ statusCode >= 400 => 'yellow ' ,
@@ -120,6 +120,7 @@ public function requestInfo($request, $verbosity = null)
120120 $ method ,
121121 $ url ,
122122 $ dots ,
123+ $ memory ,
123124 $ duration ,
124125 ), $ this ->parseVerbosity ($ verbosity ));
125126 }
0 commit comments