MDL-38212 cron: display time and memory usage before each task.

This helps diagnose problems.

Also, call gc_collect_cycles between tasks, which may reduce the
frequency of out-of-memory errors.