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

Method print_stats

Lib/pstats.py:416–437  ·  view source on GitHub ↗
(self, *amount)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 4

get_print_listMethod · 0.95
print_titleMethod · 0.95
print_lineMethod · 0.95
func_get_function_nameFunction · 0.85

Tested by 1