You are here

protected function MigrateExecutable::getMemoryUsage in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/MigrateExecutable.php \Drupal\migrate\MigrateExecutable::getMemoryUsage()
  2. 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 538

Class

MigrateExecutable
Defines a migrate executable class.

Namespace

Drupal\migrate

Code

protected function getMemoryUsage() {
  return memory_get_usage();
}