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

Method init

tools/python-3.11.9-amd64/Lib/pstats.py:118–135  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

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

Callers 2

__init__Method · 0.95
basic_iosMethod · 0.45

Calls 4

load_statsMethod · 0.95
get_top_level_statsMethod · 0.95
setFunction · 0.50
printFunction · 0.50

Tested by

no test coverage detected