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

Method __init__

Lib/pstats.py:529–546  ·  view source on GitHub ↗
(self, *args, stream=None)

Source from the content-addressed store, hash-verified

527
528class SampledStats(Stats):
529 def __init__(self, *args, stream=None):
530 super().__init__(*args, stream=stream)
531
532 self.sort_arg_dict = {
533 "samples" : (((1,-1), ), "sample count"),
534 "nsamples" : (((1,-1), ), "sample count"),
535 "cumtime" : (((3,-1), ), "cumulative time"),
536 "cumulative": (((3,-1), ), "cumulative time"),
537 "filename" : (((4, 1), ), "file name"),
538 "line" : (((5, 1), ), "line number"),
539 "module" : (((4, 1), ), "file name"),
540 "name" : (((6, 1), ), "function name"),
541 "nfl" : (((6, 1),(4, 1),(5, 1),), "name/file/line"),
542 "psamples" : (((0,-1), ), "primitive call count"),
543 "stdname" : (((7, 1), ), "standard name"),
544 "time" : (((2,-1), ), "internal time"),
545 "tottime" : (((2,-1), ), "internal time"),
546 }
547
548 def print_call_subheading(self, name_size):
549 print(" "*name_size + " nsamples tottime cumtime", file=self.stream)

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected