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

Method print_call_heading

Lib/pstats.py:465–475  ·  view source on GitHub ↗
(self, name_size, column_title)

Source from the content-addressed store, hash-verified

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)
467 # print sub-header only if we have new-style callers
468 subheader = False
469 for cc, nc, tt, ct, callers in self.stats.values():
470 if callers:
471 value = next(iter(callers.values()))
472 subheader = isinstance(value, tuple)
473 break
474 if subheader:
475 self.print_call_subheading(name_size)
476
477 def print_call_subheading(self, name_size):
478 print(" "*name_size + " ncalls tottime cumtime", file=self.stream)

Callers 2

print_calleesMethod · 0.95
print_callersMethod · 0.95

Calls 3

print_call_subheadingMethod · 0.95
ljustMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected