WP Profiler
Public Member Functions | Public Attributes | List of all members
WPProfiler\Core\Profiler Class Reference

Public Member Functions

 init ()
 
 time ()
 
 enable_collector ($name)
 
 is_collector ($name)
 
 get_report_handler ()
 
 set_report_handler (ReporterInterface $report_handler)
 
 meta_exists ($key)
 
 get_all_meta ()
 
 get_meta ($key)
 
 register_collector ($name, CollectorInterface $collector)
 
 call_collector ($name, $method,...$args)
 
 is_collector_enabled ($name)
 
 call_collector_by_ref ($name, $method,&...$args)
 
 create_timer_store ()
 
 add_meta ($key, $value)
 
 save_report ()
 
 disable_all_collectors ()
 
 disable_collector ($name)
 

Public Attributes

const VERSION = '0.1.2'
 

Member Function Documentation

WPProfiler\Core\Profiler::add_meta (   $key,
  $value 
)
Parameters
string$key
mixed$value
WPProfiler\Core\Profiler::call_collector (   $name,
  $method,
  $args 
)
Parameters
$name
$method
mixed...$args
Returns
bool|mixed
WPProfiler\Core\Profiler::call_collector_by_ref (   $name,
  $method,
&...  $args 
)
WPProfiler\Core\Profiler::create_timer_store ( )
Returns
array
WPProfiler\Core\Profiler::disable_all_collectors ( )
WPProfiler\Core\Profiler::disable_collector (   $name)
Parameters
$name
Returns
bool
WPProfiler\Core\Profiler::enable_collector (   $name)
Parameters
$name
Returns
bool
WPProfiler\Core\Profiler::get_all_meta ( )
Returns
array
WPProfiler\Core\Profiler::get_meta (   $key)
Parameters
string$key
Returns
mixed
WPProfiler\Core\Profiler::get_report_handler ( )
Returns
PhpUnused
WPProfiler\Core\Profiler::init ( )
WPProfiler\Core\Profiler::is_collector (   $name)
Parameters
$name
Returns
bool
WPProfiler\Core\Profiler::is_collector_enabled (   $name)
Parameters
$name
Returns
bool
WPProfiler\Core\Profiler::meta_exists (   $key)
Parameters
string$key
Returns
bool
WPProfiler\Core\Profiler::register_collector (   $name,
CollectorInterface  $collector 
)
Parameters
$name
\WPProfiler\Core\CollectorInterface$collector
WPProfiler\Core\Profiler::save_report ( )
WPProfiler\Core\Profiler::set_report_handler ( ReporterInterface  $report_handler)
Parameters
\WPProfiler\Core\ReporterInterface$report_handler
WPProfiler\Core\Profiler::time ( )
Returns
float

Member Data Documentation

const WPProfiler\Core\Profiler::VERSION = '0.1.2'

Add version identifier


The documentation for this class was generated from the following file: