JProfiler
Description
Utility class to assist in the process of benchmarking the execution of sections of code to understand where time is being spent.
Located in /joomla/error/profiler.php (line 29)
JObject (Subpackage Base)
![]()
JProfiler (Subpackage Error)
Method Summary
Variables
array
$_buffer
= null (line 47)
string
$_prefix
= '' (line 41)
int
$_start
= 0 (line 35)
Inherited Variables
Inherited from JObject
JObject::$_errors
Methods
Constructor
JProfiler
__construct
([string $prefix = ''])
- string $prefix: Prefix for mark messages
Redefinition of:
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Get all profiler marks.
Returns an array of all marks created since the Profiler object was instantiated. Marks are strings as per JProfiler::mark().
array
getBuffer
()
Returns a reference to the global Profiler object, only creating it if it doesn't already exist.
This method must be invoked as:
$browser = & JProfiler::getInstance( $prefix );
- string $prefix: Prefix used to distinguish profiler objects.
Output a time mark
The mark is returned as text enclosed in <div> tags with a CSS class of 'profiler'.
string
mark
(string $label)
- string $label: A label for the time mark
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::getPublicProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
Documentation generated on Tue, 29 Jan 2008 18:49:59 +0000 by phpDocumentor 1.3.1



