Logging memory usage
This commit is contained in:
parent
26b210ded9
commit
2bc8f6d403
|
@ -967,6 +967,7 @@ SQL;
|
||||||
|
|
||||||
public static function getSchedule($p_fromDateTime = null, $p_toDateTime = null)
|
public static function getSchedule($p_fromDateTime = null, $p_toDateTime = null)
|
||||||
{
|
{
|
||||||
|
Logging::info(memory_get_usage()/(1024*1024));
|
||||||
//generate repeating shows if we are fetching the schedule
|
//generate repeating shows if we are fetching the schedule
|
||||||
//for days beyond the shows_populated_until value in cc_pref
|
//for days beyond the shows_populated_until value in cc_pref
|
||||||
$needScheduleUntil = $p_toDateTime;
|
$needScheduleUntil = $p_toDateTime;
|
||||||
|
@ -975,7 +976,7 @@ SQL;
|
||||||
$needScheduleUntil->add(new DateInterval("P1D"));
|
$needScheduleUntil->add(new DateInterval("P1D"));
|
||||||
}
|
}
|
||||||
Application_Model_Show::createAndFillShowInstancesPastPopulatedUntilDate($needScheduleUntil);
|
Application_Model_Show::createAndFillShowInstancesPastPopulatedUntilDate($needScheduleUntil);
|
||||||
|
Logging::info(memory_get_usage()/(1024*1024));
|
||||||
list($range_start, $range_end) = self::getRangeStartAndEnd($p_fromDateTime, $p_toDateTime);
|
list($range_start, $range_end) = self::getRangeStartAndEnd($p_fromDateTime, $p_toDateTime);
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
|
@ -287,6 +287,7 @@ class Application_Service_ShowService
|
||||||
*/
|
*/
|
||||||
public function delegateInstanceCreation($daysAdded=null, $end=null, $fillInstances=false)
|
public function delegateInstanceCreation($daysAdded=null, $end=null, $fillInstances=false)
|
||||||
{
|
{
|
||||||
|
Logging::info(memory_get_usage()/(1024*1024));
|
||||||
$populateUntil = $this->getPopulateShowUntilDateTIme();
|
$populateUntil = $this->getPopulateShowUntilDateTIme();
|
||||||
|
|
||||||
if (is_null($this->ccShow)) {
|
if (is_null($this->ccShow)) {
|
||||||
|
@ -367,6 +368,7 @@ class Application_Service_ShowService
|
||||||
$this->ccShow, $this->linkedShowContent);
|
$this->ccShow, $this->linkedShowContent);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
Logging::info(memory_get_usage()/(1024*1024));
|
||||||
return $this->ccShow;
|
return $this->ccShow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue