Example #1
0
 def _update_windows_stats(self):
     handle = int(self.process._handle)
     self.execution_time = execution_time(handle)
     self.tie = self.execution_time > self.time_limit
     self.max_memory = max_memory(handle) / 1024.
     self.mle = self.max_memory > self.memory_limit
     if self.returncode is None:
         self.returncode = self.process.returncode
Example #2
0
 def _update_windows_stats(self):
     handle = int(self.process._handle)
     self.execution_time = execution_time(handle)
     self.tie = self.execution_time > self.time_limit
     self.max_memory = max_memory(handle) / 1024.
     self.mle = self.max_memory > self.memory_limit
     if self.returncode is None:
         self.returncode = self.process.returncode
Example #3
0
 def _update_stats(self):
     self.execution_time = execution_time(self._process)
     self.tle |= self.execution_time > self.time_limit
     self.max_memory = max_memory(self._process) / 1024.
     self.mle |= self.max_memory > self.memory_limit