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

Method print_callers

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

Source from the content-addressed store, hash-verified

452 return self
453
454 def print_callers(self, *amount):
455 width, list = self.get_print_list(amount)
456 if list:
457 self.print_call_heading(width, "was called by...")
458 for func in list:
459 cc, nc, tt, ct, callers = self.stats[func]
460 self.print_call_line(width, func, callers, "<-")
461 print(file=self.stream)
462 print(file=self.stream)
463 return self
464
465 def print_call_heading(self, name_size, column_title):
466 print("Function ".ljust(name_size) + column_title, file=self.stream)

Callers

nothing calls this directly

Calls 3

get_print_listMethod · 0.95
print_call_headingMethod · 0.95
print_call_lineMethod · 0.95

Tested by

no test coverage detected