Ejemplo n.º 1
0
 function __destruct()
 {
     /**
      * 타임스템프를 기록한 시간 차이를 계산하여 기록한다.
      * 사용한 메모리를 기록한다.
      */
     $this->info(sprintf('The Class "%s" total execution time: ', get_class($this)) . $this->timestamp->fetch() . ", Memory used: " . bytesize(memory_get_peak_usage()));
 }
Ejemplo n.º 2
0
 function __destruct()
 {
     /**
      * 타임스템프를 기록한 시간 차이를 계산하여 출력한다.
      */
     //        $this->info("The Class total memory used: " . number_format(memory_get_peak_usage()));
     // $this->info(sprintf('The Class "%s" total execution time: ', get_class($this)) . $this->timestamp->fetch());
     $this->info(sprintf('The Class "%s" total execution time: ', get_class($this)) . $this->timestamp->fetch() . ", Memory used: " . bytesize(memory_get_peak_usage()));
 }