MCPcopy Index your code
hub / github.com/python/cpython / init

Method init

Lib/pstats.py:117–134  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

115 self.add(*args)
116
117 def init(self, arg):
118 self.all_callees = None # calc only if needed
119 self.files = []
120 self.fcn_list = None
121 self.total_tt = 0
122 self.total_calls = 0
123 self.prim_calls = 0
124 self.max_name_len = 0
125 self.top_level = set()
126 self.stats = {}
127 self.sort_arg_dict = {}
128 self.load_stats(arg)
129 try:
130 self.get_top_level_stats()
131 except Exception:
132 print("Invalid timing data %s" %
133 (self.files[-1] if self.files else ''), file=self.stream)
134 raise
135
136 def load_stats(self, arg):
137 if arg is None:

Callers 2

__init__Method · 0.95
mainFunction · 0.45

Calls 3

load_statsMethod · 0.95
get_top_level_statsMethod · 0.95
setFunction · 0.85

Tested by 1

mainFunction · 0.36