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

Method write_value

prometheus_client/mmap_dict.py:127–131  ·  view source on GitHub ↗
(self, key, value, timestamp)

Source from the content-addressed store, hash-verified

125 return _unpack_two_doubles(self._m, pos)
126
127 def write_value(self, key, value, timestamp):
128 if key not in self._positions:
129 self._init_value(key)
130 pos = self._positions[key]
131 _pack_two_doubles(self._m, pos, value, timestamp)
132
133 def close(self):
134 if self._f:

Callers 6

incMethod · 0.80
setMethod · 0.80
test_process_restartMethod · 0.80
test_expansionMethod · 0.80
test_multi_expansionMethod · 0.80

Calls 2

_init_valueMethod · 0.95
_pack_two_doublesFunction · 0.85

Tested by 4

test_process_restartMethod · 0.64
test_expansionMethod · 0.64
test_multi_expansionMethod · 0.64