Ejemplo n.º 1
0
 public function getProfilerFunctionReport($units)
 {
     if ($this->profilerEnabled) {
         static $unitsMap;
         if (!$unitsMap) {
             $unitsMap = array(self::SAMPLES => LuaSandbox::SAMPLES, self::SECONDS => LuaSandbox::SECONDS, self::PERCENT => LuaSandbox::PERCENT);
         }
         return $this->sandbox->getProfilerFunctionReport($unitsMap[$units]);
     } else {
         return array();
     }
 }