mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:02 +08:00
Ensure the last step to a stage is logged appropriately
This commit is contained in:
parent
4616a55596
commit
033d53aaaf
3 changed files with 21 additions and 0 deletions
|
@ -43,6 +43,13 @@ class Logger {
|
|||
$this->cache_miss_offset = ! empty( $wp_object_cache->cache_misses ) ? $wp_object_cache->cache_misses : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not the logger is running
|
||||
*/
|
||||
public function running() {
|
||||
return ! is_null( $this->start_time );
|
||||
}
|
||||
|
||||
/**
|
||||
* Stop this logger
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue