'Ensures we do not exceed the allowed memory limit.'

def _CheckQuota(self):

    if (self.proc.memory_info().rss > self.memory_quota):
        raise MemoryError('Exceeded    memory    quota')
    self.action.Progress()
