Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Performance

GUI

PHP Code Profiling

CLI

Interim implementation of Performance logging

This is largely undefined and still up to change.

FreePBX::Performance()->On();
FreePBX::Performance()->Stamp('Stamp this!'); 

On()

/**
 * Turn Performance Logging on
 */
public function On() 

Off()

/**
 * Turn Performance Logging off
 */
public function Off() 

Stamp()

/**
 * 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)
  • No labels