Lines Matching refs:self
41 def print_stats(self, sort=-1):
43 pstats.Stats(self).strip_dirs().sort_stats(sort).print_stats()
45 def dump_stats(self, file):
48 self.create_stats()
49 marshal.dump(self.stats, f)
51 def create_stats(self):
52 self.disable()
53 self.snapshot_stats()
55 def snapshot_stats(self):
56 entries = self.getstats()
57 self.stats = {}
68 self.stats[func] = cc, nc, tt, ct, callers
93 def run(self, cmd):
96 return self.runctx(cmd, dict, dict)
98 def runctx(self, cmd, globals, locals):
99 self.enable()
103 self.disable()
104 return self
107 def runcall(self, func, /, *args, **kw):
108 self.enable()
112 self.disable()
114 def __enter__(self):
115 self.enable()
116 return self
118 def __exit__(self, *exc_info):
119 self.disable()