Lines Matching refs:self

121     def __init__(self):  argument
122 self.allocated_sum = 0
123 self.gotten_sum = 0
124 self.blocked_sum = 0
125 self.waited_sum = 0
126 self.exec_count = 0;
127 self.iocount_sum = 0
128 self.ffp_samples = []
130 def gotten_stats(self, passed): argument
131 total = float(self.gotten_sum)
133 exs = self.exec_count
140 def waited_stats(self, passed): argument
141 total = float(self.waited_sum)
143 exs = self.exec_count
150 def blocked_stats(self, passed): argument
151 total = float(self.blocked_sum)
153 ios = self.iocount_sum
160 def allocated_stats(self, passed): argument
161 total = self.allocated_sum
162 exs = self.exec_count
168 def ec_stats(self, passed): argument
169 total = float(self.exec_count/(float(passed)/10**9))
172 def io_stats(self, passed): argument
173 total = float(self.iocount_sum)
174 exs = self.exec_count
181 def stats(self, passed): argument
182 … return [self.gotten_stats(passed), self.allocated_stats(passed), self.blocked_stats(passed),
183 self.waited_stats(passed), self.ec_stats(passed), self.io_stats(passed)]
537 def __init__(self, filename, mode): argument
538 self.filename = filename
539 self.saved_mode = mode
540 self.delay_data = ""
541 self.opened = 0
543 def delayed_write(self, str): argument
544 self.delay_data = str
546 def write(self, str): argument
547 if not self.opened:
548 self.file = open(self.filename, self.saved_mode)
549 self.opened = 1
550 self.file.write(self.delay_data)
551 self.file.write(str)
553 def rename(self, name): argument
554 self.filename = name
556 def flush(self): argument
557 if self.opened:
558 self.file.flush()
560 def close(self): argument
561 if self.opened:
562 self.file.close()