MCPcopy
hub / github.com/commaai/openpilot / sample

Method sample

system/statsd.py:59–60  ·  view source on GitHub ↗
(self, name: str, value: float)

Source from the content-addressed store, hash-verified

57 # Samples will be recorded in a buffer and at aggregation time,
58 # statistical properties will be logged (mean, count, percentiles, ...)
59 def sample(self, name: str, value: float):
60 self._send(f"{name}:{value}|{METRIC_TYPE.SAMPLE}")
61
62
63def main() -> NoReturn:

Callers 7

get_test_casesFunction · 0.80
_make_commitMethod · 0.80
test_qlogMethod · 0.80
test_rlogMethod · 0.80
hardware_threadFunction · 0.80

Calls 1

_sendMethod · 0.95

Tested by 6

get_test_casesFunction · 0.64
_make_commitMethod · 0.64
test_qlogMethod · 0.64
test_rlogMethod · 0.64