Execution time/memory profiling class. More...
Static Public Member Functions | |
| static | mark ($msg=null) |
| Marks a time. | |
| static | profile () |
| Returns profiling information as an array. | |
| static | output ($in_html=false) |
| Return formatted profile information. | |
| static | html_output () |
| Return formatted profile information in HTML form. | |
Private Member Functions | |
| __construct () | |
| Private constructor prevents direct creation of object. | |
Static Private Attributes | |
| static | $marks = array() |
| This is an array that holds the markers. | |
Execution time/memory profiling class.
This is a modification of the Solar_Debug_Timer class
Singleton class accessed via static methods
Example:
bdfProfiler::mark('Start'); bdfProfiler::mark('End'); echo bdfProfiler::html_output();
| bdfProfiler::__construct | ( | ) | [private] |
Private constructor prevents direct creation of object.
| static bdfProfiler::html_output | ( | ) | [static] |
Return formatted profile information in HTML form.
Referenced by output().
| static bdfProfiler::mark | ( | $ | msg = null | ) | [static] |
Marks a time.
| msg | Optional string. A message to be displayed for this marker. |
| static bdfProfiler::output | ( | $ | in_html = false | ) | [static] |
Return formatted profile information.
| in_html | If true, the output is html. Default is false. |
| static bdfProfiler::profile | ( | ) | [static] |
Returns profiling information as an array.
Referenced by html_output(), and output().
bdfProfiler::$marks = array() [static, private] |
This is an array that holds the markers.
1.7.4