function migrate_memory_start in Migrate 7.2
Same name and namespace in other branches
- 6.2 migrate.module \migrate_memory_start()
Save memory usage with the specified name. If you start and stop the same memory name multiple times, the measured differences will be accumulated.
Parameters
name: The name of the memory measurement.
1 call to migrate_memory_start()
- migrate_instrument_start in ./
migrate.module - Start measuring time and (optionally) memory consumption over a section of code. Note that the memory consumption measurement is generally not useful in lower areas of the code, where data is being generated that will be freed by the next call to the…
File
- ./
migrate.module, line 489 - API and drush commands to support migration of data from external sources into a Drupal installation.
Code
function migrate_memory_start($name) {
global $_migrate_memory;
$_migrate_memory[$name]['start'] = memory_get_usage();
$_migrate_memory[$name]['count'] = isset($_migrate_memory[$name]['count']) ? ++$_migrate_memory[$name]['count'] : 1;
}