Example #1
0
 /**
  * @param PerformanceSnapshotInterface $snapshot
  * @param $snapshotName
  */
 private function keepTrackOfPeakingMemoryAllocation(PerformanceSnapshotInterface $snapshot, $snapshotName)
 {
     if ($snapshot->peakMemoryAllocated() > $this->highestMemoryPeak) {
         $this->highestMemoryPeak = $snapshot->peakMemoryAllocated();
         $this->nameOfSnapShotThatHasMemoryPeak = $snapshotName;
     }
 }