function MigrateExecutable::getMemoryUsage
Same name in other branches
- 9 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::getMemoryUsage()
- 8.9.x 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 597
Class
- MigrateExecutable
- Defines a migrate executable class.
Namespace
Drupal\migrateCode
protected function getMemoryUsage() {
return memory_get_usage();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.