Back to Profiler class

Method __construct

public
__construct
(mixed $prefix = '')
Constructor
Parameters
  • string $prefix Prefix for mark messages
Since
  • 1.7.0
Class: Profiler
Project: Joomla

Method __construct - Source code

/**
 * Constructor
 *
 * @param   string  $prefix  Prefix for mark messages
 *
 * @since   1.7.0
 */
public function __construct($prefix = '')
{
    $this->start = microtime(1);
    $this->prefix = $prefix;
    $this->marks = array();
    $this->buffer = array();
}