You are viewing an old version of this content. View the current version.
Compare with Current
View Version History
Version 1
Current »
PHP Code Profiling
Interim implementation of Performance logging
FreePBX::Performance()->On();
FreePBX::Performance()->Stamp('Stamp this!');
|
/**
* Turn Performance Logging on
*/
public function On()
|
/**
* Turn Performance Logging off
*/
public function Off()
|
/**
* Generate a stamp to the output
*
* Prints out microtime and memory usage from PHP
*
* @param {string} $str The stamp send out
* @example "PERF/$str/".microtime()."/".memory_get_usage()."\n"
*/
public function Stamp($str)
|