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

Method get_info

Lib/profiling/sampling/binary_reader.py:41–55  ·  view source on GitHub ↗

Get metadata about the binary file. Returns: dict: File metadata including: - sample_count: Number of samples in the file - sample_interval_us: Sampling interval in microseconds - start_time_us: Start timestamp in microseconds

(self)

Source from the content-addressed store, hash-verified

39 return False
40
41 def get_info(self):
42 """Get metadata about the binary file.
43
44 Returns:
45 dict: File metadata including:
46 - sample_count: Number of samples in the file
47 - sample_interval_us: Sampling interval in microseconds
48 - start_time_us: Start timestamp in microseconds
49 - string_count: Number of unique strings
50 - frame_count: Number of unique frames
51 - compression: Compression type used
52 """
53 if self._reader is None:
54 raise RuntimeError("Reader not open. Use as context manager.")
55 return self._reader.get_info()
56
57 def replay_samples(self, collector, progress_callback=None):
58 """Replay samples from binary file through a collector.

Callers 10

_handle_replayFunction · 0.45
_load_baselineMethod · 0.45
sample_countMethod · 0.45
convert_binary_to_formatFunction · 0.45
test_get_infoMethod · 0.45
check_infoMethod · 0.45
_infoMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_get_infoMethod · 0.36
check_infoMethod · 0.36