MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get_top_level_stats

Method get_top_level_stats

tools/python-3.11.9-amd64/Lib/pstats.py:159–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157 return
158
159 def get_top_level_stats(self):
160 for func, (cc, nc, tt, ct, callers) in self.stats.items():
161 self.total_calls += nc
162 self.prim_calls += cc
163 self.total_tt += tt
164 if ("jprofile", 0, "profiler") in callers:
165 self.top_level.add(func)
166 if len(func_std_string(func)) > self.max_name_len:
167 self.max_name_len = len(func_std_string(func))
168
169 def add(self, *arg_list):
170 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