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.
Afficher le fichier Open project: lucatume/wp-browser

Méthodes publiques

Свойство Type Description
$profile
$stack

Méthodes publiques

Méthode 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 méthode

PHP5 constructor.
public __construct ( )

_current_action() public méthode

public _current_action ( )

_dirty_objects_count() public méthode

public _dirty_objects_count ( $dirty_objects )

_query_count() public méthode

public _query_count ( $queries )

_query_summary() public méthode

public _query_summary ( $queries, &$out )

array_add() public méthode

public array_add ( $a, $b )

array_sub() public méthode

public array_sub ( $a, $b )

log_action() public méthode

public log_action ( $tag )

log_filter() public méthode

public log_filter ( $tag )

microtime() public méthode

public microtime ( $since )

print_summary() public méthode

public print_summary ( )

results() public méthode

public results ( )

start() public méthode

public start ( $name )

stop() public méthode

public stop ( )

Property Details

$profile public_oe property

public $profile

$stack public_oe property

public $stack