[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/joomla/error/ -> profiler.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
License: GNU/GPL, see LICENSE.php
Version: $Id: profiler.php 14401 2010-01-26 14:10:00Z louis $
File Size: 170 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JProfiler:: (6 methods):
  __construct()
  getInstance()
  mark()
  getmicrotime()
  getMemory()
  getBuffer()


Class: JProfiler  - X-Ref

Utility class to assist in the process of benchmarking the execution
of sections of code to understand where time is being spent.

__construct( $prefix = '' )   X-Ref
Constructor

param: string Prefix for mark messages

getInstance($prefix = '')   X-Ref
Returns a reference to the global Profiler object, only creating it
if it doesn't already exist.

This method must be invoked as:
<pre>  $browser = & JProfiler::getInstance( $prefix );</pre>

param: string Prefix used to distinguish profiler objects.
return: JProfiler  The Profiler object.

mark( $label )   X-Ref
Output a time mark

The mark is returned as text enclosed in <div> tags
with a CSS class of 'profiler'.

param: string A label for the time mark
return: string Mark enclosed in <div> tags

getmicrotime()   X-Ref
Get the current time.

return: float The current time

getMemory()   X-Ref
Get information about current memory usage.

return: int The memory usage

getBuffer()   X-Ref
Get all profiler marks.

Returns an array of all marks created since the Profiler object
was instantiated.  Marks are strings as per {@link JProfiler::mark()}.

return: array Array of profiler marks



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1