• Home
  • Raw
  • Download

Lines Matching refs:self

50   def __init__(self, line):  argument
53 self.time = []
54 self.data = []
55 self.name = res.group(1)
56 self.duration = float(res.group(2))
57 self.iteration = int(res.group(3))
58 self.summary = re.match('([a-z_]+)_total', self.name)
60 def __repr__(self): argument
61 return str(zip(self.time, self.data))
63 def Add(self, time, value): argument
64 self.time.append(time)
65 self.data.append(value)
67 def RescaleTo(self, length): argument
68 factor = len(self.data) / length
75 for t, d in izip(self.time, self.data):
82 self.time = new_time
83 self.data = new_data
87 def __init__(self): argument
88 self.kernel = ''
89 self.command_line = ''
90 self.sched = ''
91 self.name = ''
92 self.fadvise = ''
93 self.iterations = 0
94 self.duration = 0.0
95 self.complete = False
97 def Parse(self, line): argument
99 self.kernel = re.search('Linux version ([0-9.]+-[^ ]+)', line).group(1)
101 self.command_line = re.search('# Command: [/\w_]+ (.*)', line).group(1)
102 self.command_line = self.command_line.replace(' --', '-')
103 self.command_line = self.command_line.replace(' -d', '')
104 self.command_line = self.command_line.replace('--test=', '')
106 self.iterations = int(re.search('# Iterations: ([0-9]+)', line).group(1))
108 self.fadvise = re.search('# Fadvise: ([\w]+)', line).group(1)
110 self.sched = re.search('# Sched features: ([\w]+)', line).group(1)
111 self.complete = True
113 def AsTitle(self): argument
115 self.kernel, self.duration, self.command_line, self.sched)
117 def UpdateWith(self, dataset): argument
118 self.duration = max(self.duration, dataset.duration)
119 self.name = dataset.name