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

Method print_stats

tools/python-3.11.9-amd64/Lib/pstats.py:414–435  ·  view source on GitHub ↗
(self, *amount)

Source from the content-addressed store, hash-verified

412 return width+2, stat_list
413
414 def print_stats(self, *amount):
415 for filename in self.files:
416 print(filename, file=self.stream)
417 if self.files:
418 print(file=self.stream)
419 indent = ' ' * 8
420 for func in self.top_level:
421 print(indent, func_get_function_name(func), file=self.stream)
422
423 print(indent, self.total_calls, "function calls", end=' ', file=self.stream)
424 if self.total_calls != self.prim_calls:
425 print("(%d primitive calls)" % self.prim_calls, end=' ', file=self.stream)
426 print("in %.3f seconds" % self.total_tt, file=self.stream)
427 print(file=self.stream)
428 width, list = self.get_print_list(amount)
429 if list:
430 self.print_title()
431 for func in list:
432 self.print_line(func)
433 print(file=self.stream)
434 print(file=self.stream)
435 return self
436
437 def print_callees(self, *amount):
438 width, list = self.get_print_list(amount)

Callers 1

ndiff.pyFile · 0.45

Calls 5

get_print_listMethod · 0.95
print_titleMethod · 0.95
print_lineMethod · 0.95
func_get_function_nameFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected