function _xmlsitemap_get_memory_usage in XML sitemap 7.2
Same name and namespace in other branches
- 6.2 xmlsitemap.generate.inc \_xmlsitemap_get_memory_usage()
Get Memory Usage.
File
- ./
xmlsitemap.generate.inc, line 83 - Sitemap generation and rebuilding functions for the xmlsitemap module.
Code
function _xmlsitemap_get_memory_usage($start = FALSE) {
static $memory_start;
$current = memory_get_peak_usage(TRUE);
if (!isset($memory_start) || $start) {
$memory_start = $current;
}
return $current - $memory_start;
}