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

Method GetLogHistory

library/cpp/par/par_log.h:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 void GetLogHistory(TVector<TString>* res) {
22 res->resize(0);
23 TGuard<TMutex> lock(LogMutex);
24 const auto begin = LoggedStringsBuffer.FirstIndex();
25 const auto end = LoggedStringsBuffer.TotalSize();
26 for (size_t i = begin; i < end; ++i) {
27 res->push_back(LoggedStringsBuffer[i]);
28 }
29 }
30
31 void OutputLogTailToCout() {
32 TGuard<TMutex> lock(LogMutex);

Callers

nothing calls this directly

Calls 4

FirstIndexMethod · 0.80
resizeMethod · 0.45
TotalSizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected