示例#1
0
 public function stopAnalyze()
 {
     $flow = new Flow($this);
     $this->flows[] = $flow;
     $flow->flow();
     $fieldSets = [];
     foreach ($this->flows as $flow) {
         $fields = $flow->getFields();
         foreach ($fieldSets as $fieldSet) {
             if ($fieldSet == $fields) {
                 continue 2;
             }
         }
         $fieldSets[] = $fields;
     }
     $this->fields = $fieldSets;
     echo "\rFinished analyzing {$this->name} (memory: " . round(memory_get_usage() / 1024, 2) . " KB)\n";
     unset($this->instr);
     gc_collect_cycles();
     echo "Freed resources (memory: " . round(memory_get_usage() / 1024, 2) . " KB)\n";
 }