# File lib/god/conditions/memory_usage.rb, line 65 def test process = System::Process.new(self.pid) @timeline.push(process.memory) self.info = [] history = "[" + @timeline.map { |x| "#{x > self.above ? '*' : ''}#{x}kb" }.join(", ") + "]" if @timeline.select { |x| x > self.above }.size >= self.times.first self.info = "memory out of bounds #{history}" return true else return false end end