def outputTimings(self, output, logfile): durs = [ libperf.parseMinutesSeconds(line.split('\t')[1]) for line in output.split('\n') if line.startswith('real') ] for i, val in enumerate(durs): line = "%d %f" % (i, durs[i]) self.log(logfile, line)
def run(self): xenrt.TEC().logverbose("Responsiveness thread: started") output = self.host.execdom0("\ stopfile=%s; \ rm -f $stopfile; \ while [ ! -e \"$stopfile\" ]; do \ time %s; \ sleep %s; \ done; \ rm -f $stopfile \ " % (self.stopfile, self.cmd, str(self.delay)), timeout=3600) self.durs = [libperf.parseMinutesSeconds(line.split('\t')[1]) for line in output.split('\n') if line.startswith('real')] xenrt.TEC().logverbose("Responsiveness thread: stopped")
def run(self): xenrt.TEC().logverbose("Responsiveness thread: started") output = self.host.execdom0("\ stopfile=%s; \ rm -f $stopfile; \ while [ ! -e \"$stopfile\" ]; do \ time %s; \ sleep %s; \ done; \ rm -f $stopfile \ " % (self.stopfile, self.cmd, str(self.delay)), timeout=3600) self.durs = [ libperf.parseMinutesSeconds(line.split('\t')[1]) for line in output.split('\n') if line.startswith('real') ] xenrt.TEC().logverbose("Responsiveness thread: stopped")
def outputTimings(self, output, logfile): durs = [libperf.parseMinutesSeconds(line.split('\t')[1]) for line in output.split('\n') if line.startswith('real')] for i, val in enumerate(durs): line = "%d %f" % (i, durs[i]) self.log(logfile, line)