\JProfiler
Utility class to assist in the process of benchmarking the execution of sections of code to understand where time is being spent.
Synopsis
class JProfiler
{
- // members
- protected $start;
- protected $prefix;
- protected $buffer;
- protected $marks;
- protected $previousTime;
- protected $previousMem;
- protected $instances;
- // methods
- public void __construct()
- public static JProfiler getInstance()
- public string mark()
- public static float getmicrotime()
- public integer getMemory()
- public array getMarks()
- public array getBuffer()
Members
protected
- $buffer — array
- $instances — array
- $marks — array
- $prefix — string
- $previousMem — float
- $previousTime — float
- $start — integer
Methods
public
- __construct() — Constructor
- getBuffer() — Get all profiler mark buffers.
- getInstance() — Returns the global Profiler object, only creating it if it doesn't already exist.
- getMarks() — Get all profiler marks.
- getMemory() — Get information about current memory usage.
- getmicrotime() — Get the current time.
- mark() — Output a time mark