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

Method get_stats

Lib/profiling/sampling/binary_reader.py:81–90  ·  view source on GitHub ↗

Get reconstruction statistics from replay. Returns: dict: Statistics about record types decoded and samples reconstructed during replay.

(self)

Source from the content-addressed store, hash-verified

79 return self._reader.get_info()['sample_count']
80
81 def get_stats(self):
82 """Get reconstruction statistics from replay.
83
84 Returns:
85 dict: Statistics about record types decoded and samples
86 reconstructed during replay.
87 """
88 if self._reader is None:
89 raise RuntimeError("Reader not open. Use as context manager.")
90 return self._reader.get_stats()
91
92
93def convert_binary_to_format(input_file, output_file, output_format,

Callers 7

_print_realtime_statsMethod · 0.45
_print_unwinder_statsMethod · 0.45
_print_binary_statsMethod · 0.45
test_get_statsMethod · 0.45
test_get_statsMethod · 0.45
getstatsMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_get_statsMethod · 0.36
test_get_statsMethod · 0.36
getstatsMethod · 0.36