MCPcopy Index your code
hub / github.com/prometheus/client_python / read_all_values

Method read_all_values

prometheus_client/mmap_dict.py:116–119  ·  view source on GitHub ↗

Yield (key, value, timestamp). No locking is performed.

(self)

Source from the content-addressed store, hash-verified

114 return _read_all_values(data=self._m, used=self._used)
115
116 def read_all_values(self):
117 """Yield (key, value, timestamp). No locking is performed."""
118 for k, v, ts, _ in self._read_all_values():
119 yield k, v, ts
120
121 def read_value(self, key):
122 if key not in self._positions:

Callers 4

test_process_restartMethod · 0.80
test_expansionMethod · 0.80
test_multi_expansionMethod · 0.80

Calls 1

_read_all_valuesMethod · 0.95

Tested by 4

test_process_restartMethod · 0.64
test_expansionMethod · 0.64
test_multi_expansionMethod · 0.64