PHP Class WPProfiler

This records basic execution time, and a summary of the actions and SQL queries run within each block. start() and stop() must be called in pairs, for example: function something_to_profile() { wppf_start(__FUNCTION__); do_stuff(); wppf_stop(); } Multiple profile blocks are permitted, and they may be nested.
Show file Open project: lucatume/wp-browser

Public Properties

Property Type Description
$profile
$stack

Public Methods

Method Description
__construct ( ) PHP5 constructor.
_current_action ( )
_dirty_objects_count ( $dirty_objects )
_query_count ( $queries )
_query_summary ( $queries, &$out )
array_add ( $a, $b )
array_sub ( $a, $b )
log_action ( $tag )
log_filter ( $tag )
microtime ( $since )
print_summary ( )
results ( )
start ( $name )
stop ( )

Method Details

__construct() public method

PHP5 constructor.
public __construct ( )

_current_action() public method

public _current_action ( )

_dirty_objects_count() public method

public _dirty_objects_count ( $dirty_objects )

_query_count() public method

public _query_count ( $queries )

_query_summary() public method

public _query_summary ( $queries, &$out )

array_add() public method

public array_add ( $a, $b )

array_sub() public method

public array_sub ( $a, $b )

log_action() public method

public log_action ( $tag )

log_filter() public method

public log_filter ( $tag )

microtime() public method

public microtime ( $since )

print_summary() public method

public print_summary ( )

results() public method

public results ( )

start() public method

public start ( $name )

stop() public method

public stop ( )

Property Details

$profile public property

public $profile

$stack public property

public $stack