mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-20 06:28:26 +08:00
Increment hook counter when timer starts
This commit is contained in:
parent
4365551db2
commit
664512ac8b
2 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,6 @@ class Command {
|
|||
global $wpdb, $wp_filter;
|
||||
|
||||
foreach( Logger::$active_loggers as $logger ) {
|
||||
$logger->hook_count++;
|
||||
$logger->start_hook_timer();
|
||||
}
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@ class Logger {
|
|||
* Start this logger's hook timer
|
||||
*/
|
||||
public function start_hook_timer() {
|
||||
$this->hook_count++;
|
||||
$this->hook_start_time = microtime( true );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue