mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:02 +08:00
Remove unused variables
This commit is contained in:
parent
e1a2d32d26
commit
5dc4c74255
1 changed files with 0 additions and 11 deletions
|
@ -86,17 +86,6 @@ class Profile_Command {
|
|||
$this->add_wp_hook( 'all', array( $this, 'wp_hook_begin' ) );
|
||||
$this->load_wordpress_with_template();
|
||||
|
||||
$total_query_time = 0;
|
||||
foreach( $wpdb->queries as $query ) {
|
||||
$total_query_time += $query[1];
|
||||
}
|
||||
$profile = array(
|
||||
'hook_time' => $this->hook_time,
|
||||
'memory_usage' => self::convert_size( memory_get_usage( true ) ),
|
||||
'query_count' => count( $wpdb->queries ),
|
||||
'query_time' => round( $total_query_time, 3 ) . 's',
|
||||
'template_time' => round( $this->template_time, 3 ) . 's',
|
||||
);
|
||||
foreach( $this->scope_log as $scope => $data ) {
|
||||
foreach( $data as $key => $value ) {
|
||||
if ( stripos( $key,'_time' ) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue