public function wp_hook_end( $filter_value = null ) {

		foreach ( Logger::$active_loggers as $logger ) {
			$logger->stop_hook_timer();
		}

		$current_filter = current_filter();
		if ( ( 'stage' === $this->type && in_array( $current_filter, $this->current_stage_hooks ) )
			|| ( 'hook' === $this->type && ! $this->focus ) ) {
			$this->loggers[ $current_filter ]->stop();
			if ( 'stage' === $this->type ) {
				$key = array_search( $current_filter, $this->current_stage_hooks );
				if ( false !== $key && isset( $this->current_stage_hooks[ $key + 1 ] ) ) {
					$pseudo_hook = "{$this->current_stage_hooks[$key+1]}:before";
				} else {
					$pseudo_hook        = "{$this->current_stage_hooks[$key]}:after";
					$this->running_hook = $pseudo_hook;
				}
				$this->loggers[ $pseudo_hook ] = new Logger( array( 'hook' => $pseudo_hook ) );
				$this->loggers[ $pseudo_hook ]->start();
			}
		}

		$this->filter_depth--;

		return $filter_value;
	}
public function wp_hook_end( $filter_value = null ) {

		foreach ( Logger::$active_loggers as $logger ) {
			$logger->stop_hook_timer();
		}

		$current_filter = current_filter();
		if ( ( 'stage' === $this->type && in_array( $current_filter, $this->current_stage_hooks ) )
			|| ( 'hook' === $this->type && ! $this->focus ) ) {
			$this->loggers[ $current_filter ]->stop();
			if ( 'stage' === $this->type ) {
				$key = array_search( $current_filter, $this->current_stage_hooks );
				if ( false !== $key && isset( $this->current_stage_hooks[ $key + 1 ] ) ) {
					$pseudo_hook = "{$this->current_stage_hooks[$key+1]}:before";
				} else {
					$pseudo_hook        = "{$this->current_stage_hooks[$key]}:after";
					$this->running_hook = $pseudo_hook;
				}
				$this->loggers[ $pseudo_hook ] = new Logger( array( 'hook' => $pseudo_hook ) );
				$this->loggers[ $pseudo_hook ]->start();
			}
		}

		$this->filter_depth--;

		return $filter_value;
	}
public function wp_hook_end ( $ filter_value = null ) { foreach ( Logger :: $ active_loggers as $ logger ) { $ logger -> stop_hook_timer ( ) ; } $ current_filter = current_filter ( ) ; if ( ( 'stage' === $ this -> type && in_array ( $ current_filter , $ this -> current_stage_hooks ) ) || ( 'hook' === $ this -> type && ! $ this -> focus ) ) { $ this -> loggers [ $ current_filter ] -> stop ( ) ; if ( 'stage' === $ this -> type ) { $ key = array_search ( $ current_filter , $ this -> current_stage_hooks ) ; if ( false !== $ key && isset ( $ this -> current_stage_hooks [ $ key + 1 ] ) ) { $ pseudo_hook = "{$this->current_stage_hooks[$key+1]}:before" ; } else { $ pseudo_hook = "{$this->current_stage_hooks[$key]}:after" ; $ this -> running_hook = $ pseudo_hook ; } $ this -> loggers [ $ pseudo_hook ] = new Logger ( array ( 'hook' => $ pseudo_hook ) ) ; $ this -> loggers [ $ pseudo_hook ] -> start ( ) ; } } $ this -> filter_depth -- ; return $ filter_value ; }
Profiling verbosity at the end of every action and filter
Profiling verbosity at the end of every action and filter