MCPcopy Create free account
hub / github.com/apache/trafficserver / statSet

Function statSet

plugins/experimental/system_stats/system_stats.cc:144–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static void
145statSet(const char *name, long value, TSMutex stat_creation_mutex)
146{
147 int stat_id = statAdd(name, TS_RECORDDATATYPE_INT, stat_creation_mutex);
148 if (stat_id != TS_ERROR) {
149 TSStatIntSet(stat_id, value);
150 }
151}
152
153static void
154setNetStat(TSMutex stat_creation_mutex, const char *interface, const char *entry, const char *subdir, bool subdirstatname)

Callers 2

setNetStatFunction · 0.85
getStatsFunction · 0.85

Calls 2

statAddFunction · 0.85
TSStatIntSetFunction · 0.85

Tested by

no test coverage detected