More mem usage logs

This commit is contained in:
drigato 2014-08-15 15:41:00 -04:00
parent 2bc8f6d403
commit f863f4dfcf
1 changed files with 3 additions and 0 deletions

View File

@ -319,6 +319,7 @@ class Application_Service_ShowService
$ccShows = array(); $ccShows = array();
foreach ($ccShowDays as $day) { foreach ($ccShowDays as $day) {
Logging::info(memory_get_usage()/(1024*1024));
$this->ccShow = $day->getCcShow(); $this->ccShow = $day->getCcShow();
$this->isRecorded = $this->ccShow->isRecorded(); $this->isRecorded = $this->ccShow->isRecorded();
@ -333,6 +334,7 @@ class Application_Service_ShowService
$this->createNonRepeatingInstance($day, $populateUntil); $this->createNonRepeatingInstance($day, $populateUntil);
break; break;
case REPEAT_WEEKLY: case REPEAT_WEEKLY:
Logging::info(memory_get_usage()/(1024*1024));
$this->createWeeklyRepeatInstances($day, $populateUntil, REPEAT_WEEKLY, $this->createWeeklyRepeatInstances($day, $populateUntil, REPEAT_WEEKLY,
new DateInterval("P7D"), $daysAdded); new DateInterval("P7D"), $daysAdded);
break; break;
@ -356,6 +358,7 @@ class Application_Service_ShowService
break; break;
} }
} }
Logging::info(memory_get_usage()/(1024*1024));
foreach ($ccShows as $ccShow) { foreach ($ccShows as $ccShow) {
if (($this->isUpdate || $fillInstances) && $ccShow->isLinked()) { if (($this->isUpdate || $fillInstances) && $ccShow->isLinked()) {