Lines Matching refs:Stats
31 __all__ = ["Stats", "SortKey"]
55 class Stats:
62 is that an "add()" method has been provided to combine Stats from
85 Stats('foo', 'goo').strip_dirs().sort_stats('calls').\
108 self.stats = {}
120 self.stats = {}
124 self.stats = marshal.load(f)
133 self.stats = arg.stats
134 arg.stats = {}
135 if not self.stats:
141 for func, (cc, nc, tt, ct, callers) in self.stats.items():
155 item = Stats(item)
168 for func, stat in item.stats.items():
169 if func in self.stats:
170 old_func_stat = self.stats[func]
173 self.stats[func] = add_func_stats(old_func_stat, stat)
179 marshal.dump(self.stats, f)
246 for func, (cc, nc, tt, ct, callers) in self.stats.items():
263 oldstats = self.stats
264 self.stats = newstats = {}
295 for func, (cc, nc, tt, ct, callers) in self.stats.items():
342 stat_list = list(self.stats.keys())
353 if count < len(self.stats):
403 cc, nc, tt, ct, callers = self.stats[func]
413 for cc, nc, tt, ct, callers in self.stats.values():
441 substats = '%s(%r) %s' % (name, value, f8(self.stats[func][3]))
451 cc, nc, tt, ct, callers = self.stats[func]
518 """Add together all the stats for two profile entries."""
570 self.stats = None
594 if self.stats:
595 getattr(self.stats, fn)(*processed)
608 if self.stats:
610 self.stats.add(line)
645 self.stats = Stats(line)
664 if self.stats:
665 self.stats.reverse_order()
673 if not self.stats:
676 abbrevs = self.stats.get_sort_arg_defs()
678 self.stats.sort_stats(*line.split())
681 for (key, value) in Stats.sort_arg_dict_default.items():
688 return [a for a in Stats.sort_arg_dict_default if a.startswith(text)]
697 if self.stats:
698 self.stats.strip_dirs()