These are all totals

This commit is contained in:
Daniel Bachhuber 2016-07-25 08:30:00 -07:00
parent 76808314c9
commit 61f07ec0f1

View file

@ -51,9 +51,9 @@ class Profile_Command {
}
$profile = array(
'memory_usage' => self::convert_size( memory_get_usage( true ) ),
'total_time' => round( microtime( true ) - $start_time, 3 ) . 's',
'total_query_count' => count( $wpdb->queries ),
'total_query_time' => round( $total_query_time, 3 ) . 's',
'execution_time' => round( microtime( true ) - $start_time, 3 ) . 's',
'query_count' => count( $wpdb->queries ),
'query_time' => round( $total_query_time, 3 ) . 's',
);
$formatter = new \WP_CLI\Formatter( $assoc_args, array_keys( $profile ) );
$formatter->display_item( $profile );