mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:02 +08:00
These are all totals
This commit is contained in:
parent
76808314c9
commit
61f07ec0f1
1 changed files with 3 additions and 3 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue