MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_LatencyAddSample

Function RM_LatencyAddSample

src/module.cpp:5300–5303  ·  view source on GitHub ↗

Allows adding event to the latency monitor to be observed by the LATENCY * command. The call is skipped if the latency is smaller than the configured * latency-monitor-threshold. */

Source from the content-addressed store, hash-verified

5298 * command. The call is skipped if the latency is smaller than the configured
5299 * latency-monitor-threshold. */
5300void RM_LatencyAddSample(const char *event, mstime_t latency) {
5301 if (latency >= g_pserver->latency_monitor_threshold)
5302 latencyAddSample(event, latency);
5303}
5304
5305/* --------------------------------------------------------------------------
5306 * ## Blocking clients from modules

Callers

nothing calls this directly

Calls 1

latencyAddSampleFunction · 0.85

Tested by

no test coverage detected