MCPcopy Create free account
hub / github.com/catboost/catboost / IncrementCounter

Function IncrementCounter

library/cpp/lfalloc/lf_allocX64.h:1175–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1173static TLFLockData LFLockThreadInfo;
1174
1175static Y_FORCE_INLINE void IncrementCounter(ELFAllocCounter counter, size_t value) {
1176#ifdef LFALLOC_YT
1177 TThreadAllocInfo* thr = pThreadInfo;
1178 if (thr) {
1179 thr->LocalCounters[counter].Increment(value);
1180 } else {
1181 AtomicAdd(GlobalCounters[counter], value);
1182 }
1183#endif
1184}
1185
1186extern "C" i64 GetLFAllocCounterFast(int counter) {
1187#ifdef LFALLOC_YT

Callers 8

AllocWithMMapFunction · 0.85
LargeBlockUnmapFunction · 0.85
LargeBlockAllocFunction · 0.85
LargeBlockFreeFunction · 0.85
DefragmentMemFunction · 0.85
SlowLFAllocFunction · 0.85
LFAllocImplFunction · 0.85
LFFreeFunction · 0.85

Calls 2

AtomicAddFunction · 0.70
IncrementMethod · 0.45

Tested by

no test coverage detected