Home | History | Annotate | Download | only in Lib

Lines Matching refs:Stats

30 __all__ = ["Stats"]
32 class Stats:
39 is that an "add()" method has been provided to combine Stats from
58 Stats('foo', 'goo').strip_dirs().sort_stats('calls').\
93 self.stats = {}
107 if not arg: self.stats = {}
110 self.stats = marshal.load(f)
120 self.stats = arg.stats
121 arg.stats = {}
122 if not self.stats:
128 for func, (cc, nc, tt, ct, callers) in self.stats.items():
142 other = Stats(other)
155 for func, stat in other.stats.iteritems():
156 if func in self.stats:
157 old_func_stat = self.stats[func]
160 self.stats[func] = add_func_stats(old_func_stat, stat)
167 marshal.dump(self.stats, f)
230 for func, (cc, nc, tt, ct, callers) in self.stats.iteritems():
247 oldstats = self.stats
248 self.stats = newstats = {}
278 for func, (cc, nc, tt, ct, callers) in self.stats.iteritems():
325 stat_list = self.stats.keys()
336 if count < len(self.stats):
385 cc, nc, tt, ct, callers = self.stats[func]
395 for cc, nc, tt, ct, callers in self.stats.itervalues():
424 substats = '%s(%r) %s' % (name, value, f8(self.stats[func][3]))
434 cc, nc, tt, ct, callers = self.stats[func]
500 """Add together all the stats for two profile entries."""
553 self.stats = None
577 if self.stats:
578 getattr(self.stats, fn)(*processed)
591 if self.stats:
592 self.stats.add(line)
625 self.stats = Stats(line)
644 if self.stats:
645 self.stats.reverse_order()
653 if not self.stats:
656 abbrevs = self.stats.get_sort_arg_defs()
658 self.stats.sort_stats(*line.split())
661 for (key, value) in Stats.sort_arg_dict_default.iteritems():
668 return [a for a in Stats.sort_arg_dict_default if a.startswith(text)]
677 if self.stats:
678 self.stats.strip_dirs()