You are here

function _xmlsitemap_memory_get_peak_usage in XML sitemap 6.2

Wrapper function for memory_get_peak_usage() for PHP versions below 5.2.

2 calls to _xmlsitemap_memory_get_peak_usage()
xmlsitemap_regenerate_batch_finished in ./xmlsitemap.generate.inc
Batch callback; sitemap regeneration finished.
_xmlsitemap_regenerate_before in ./xmlsitemap.generate.inc
Perform operations before rebuilding the sitemap.

File

./xmlsitemap.generate.inc, line 73
Sitemap generation and rebuilding functions for the xmlsitemap module.

Code

function _xmlsitemap_memory_get_peak_usage() {
  if (function_exists('memory_get_peak_usage')) {
    return memory_get_peak_usage(TRUE);
  }
  else {
    return 'N/A';
  }
}