protected function MigrateExecutable::getMemoryUsage in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::getMemoryUsage()
- 10 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::getMemoryUsage()
Returns the memory usage so far.
Return value
int The memory usage.
1 call to MigrateExecutable::getMemoryUsage()
- MigrateExecutable::memoryExceeded in core/
modules/ migrate/ src/ MigrateExecutable.php - Tests whether we've exceeded the desired memory threshold.
1 method overrides MigrateExecutable::getMemoryUsage()
- TestMigrateExecutable::getMemoryUsage in core/
modules/ migrate/ tests/ src/ Unit/ TestMigrateExecutable.php - Returns the memory usage so far.
File
- core/
modules/ migrate/ src/ MigrateExecutable.php, line 540
Class
- MigrateExecutable
- Defines a migrate executable class.
Namespace
Drupal\migrateCode
protected function getMemoryUsage() {
return memory_get_usage();
}