You are here

function migrate_instrument_stop in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 migrate.module \migrate_instrument_stop()

Stop measuring both memory and time consumption over a section of code.

Parameters

$name: The name of the measurement.

59 calls to migrate_instrument_stop()
drush_migrate_wipe in ./migrate.drush.inc
A drush command callback.
MigrateDestinationComment::bulkRollback in plugins/destinations/comment.inc
Delete a batch of comments at once.
MigrateDestinationComment::import in plugins/destinations/comment.inc
Import a single comment.
MigrateDestinationCustomBlock::bulkRollback in plugins/destinations/block_custom.inc
Delete a batch of custom blocks at once.
MigrateDestinationCustomBlock::import in plugins/destinations/block_custom.inc
Import a single row.

... See full list

File

./migrate.module, line 580
API and drush commands to support migration of data from external sources into a Drupal installation.

Code

function migrate_instrument_stop($name) {
  global $_migrate_track_memory, $_migrate_track_timer;
  if ($_migrate_track_timer) {
    timer_stop($name);
  }
  if ($_migrate_track_memory) {
    migrate_memory_stop($name);
  }
}