Skip to content

Instantly share code, notes, and snippets.

@mrdavidburns
Created December 14, 2015 19:50
Show Gist options
  • Save mrdavidburns/806059c00473bef80ac6 to your computer and use it in GitHub Desktop.
Save mrdavidburns/806059c00473bef80ac6 to your computer and use it in GitHub Desktop.
drush php-eval 'global $timers; $return = $args = array();foreach (module_implements("cron") as $module) { $function = $module . "_cron"; print($function ." - "); timer_start($function); $result = call_user_func_array($function, $args); if (isset($result) && is_array($result)) { $return = array_merge_recursive($return, $result); } else if (isset($result)) { $return[] = $result; } timer_stop ($function); print($timers[$function]["time"] ."\r\n");} '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment