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

Method print_call_heading

tools/python-3.11.9-amd64/Lib/pstats.py:463–473  ·  view source on GitHub ↗
(self, name_size, column_title)

Source from the content-addressed store, hash-verified

461 return self
462
463 def print_call_heading(self, name_size, column_title):
464 print("Function ".ljust(name_size) + column_title, file=self.stream)
465 # print sub-header only if we have new-style callers
466 subheader = False
467 for cc, nc, tt, ct, callers in self.stats.values():
468 if callers:
469 value = next(iter(callers.values()))
470 subheader = isinstance(value, tuple)
471 break
472 if subheader:
473 print(" "*name_size + " ncalls tottime cumtime", file=self.stream)
474
475 def print_call_line(self, name_size, source, call_dict, arrow="->"):
476 print(func_std_string(source).ljust(name_size) + arrow, end=' ', file=self.stream)

Callers 2

print_calleesMethod · 0.95
print_callersMethod · 0.95

Calls 3

ljustMethod · 0.80
printFunction · 0.50
valuesMethod · 0.45

Tested by

no test coverage detected