function backup_migrate_get_peak_memory_usage in Backup and Migrate 7.3
Identify the current memory usage.
Uses the same formula as the Devel module.
Return value
int The current memory usage, in megabytes.
3 calls to backup_migrate_get_peak_memory_usage()
- backup_migrate_destination_db_mysql::_dump_table_data_sql_to_file in includes/
destinations.db.mysql.inc - Get the sql to insert the data for a given table.
- backup_migrate_source_db::backup_to_file in includes/
sources.db.inc - Backup from this source.
- backup_migrate_source_db_mysql::_dump_table_data_sql_to_file in includes/
sources.db.mysql.inc - Get the sql to insert the data for a given table.
File
- ./
backup_migrate.module, line 2133 - Backup and restore databases for Drupal.
Code
function backup_migrate_get_peak_memory_usage() {
return round(memory_get_peak_usage(TRUE) / 1024 / 1024, 2);
}