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

Method get_top_level_stats

Lib/pstats.py:163–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 return
162
163 def get_top_level_stats(self):
164 for func, (cc, nc, tt, ct, callers) in self.stats.items():
165 self.total_calls += nc
166 self.prim_calls += cc
167 self.total_tt += tt
168 if ("jprofile", 0, "profiler") in callers:
169 self.top_level.add(func)
170 if len(func_std_string(func)) > self.max_name_len:
171 self.max_name_len = len(func_std_string(func))
172
173 def add(self, *arg_list):
174 if not arg_list:

Callers 1

initMethod · 0.95

Calls 3

func_std_stringFunction · 0.85
itemsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected