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

Function latencyMonitorInit

src/latency.cpp:107–109  ·  view source on GitHub ↗

Latency monitor initialization. We just need to create the dictionary * of time series, each time series is created on demand in order to avoid * having a fixed list to maintain. */

Source from the content-addressed store, hash-verified

105 * of time series, each time series is created on demand in order to avoid
106 * having a fixed list to maintain. */
107void latencyMonitorInit(void) {
108 g_pserver->latency_events = dictCreate(&latencyTimeSeriesDictType,NULL);
109}
110
111/* Add the specified sample to the specified time series "event".
112 * This function is usually called via latencyAddSampleIfNeeded(), that

Callers 1

initServerFunction · 0.85

Calls 1

dictCreateFunction · 0.70

Tested by

no test coverage detected