You are here

function _debug_memory in Advertisement 6.2

Same name and namespace in other branches
  1. 6.3 adserve.inc \_debug_memory()
  2. 7 adserve.inc \_debug_memory()
3 calls to _debug_memory()
adserve_cache in ./adcache.inc
Wrapper for calling adserve_cache functions.
adserve_cache_display in ./adcache.inc
Default function for displaying advertisements. This is not generally replaced by ad cache modules.
_debug_echo in ./adserve.inc
Dump debug message to screen; set custom error handler.

File

./adserve.inc, line 254
Configuration.

Code

function _debug_memory() {
  $memory = '';
  if (adserve_variable('debug') && function_exists('memory_get_usage')) {
    $memory = number_format(round(memory_get_usage() / 1024, 3), 3);
    echo "Memory usage: {$memory} K<br />\n";
  }
}