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

Function DebugTraceMMgr

library/cpp/lfalloc/lf_allocX64.h:1675–1689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1673// Output mem alloc stats
1674const int N_PAGE_SIZE = 4096;
1675static void DebugTraceMMgr(const char* pszFormat, ...) // __cdecl
1676{
1677 static char buff[20000];
1678 va_list va;
1679 //
1680 va_start(va, pszFormat);
1681 vsprintf(buff, pszFormat, va);
1682 va_end(va);
1683//
1684#ifdef _win_
1685 OutputDebugStringA(buff);
1686#else
1687 fputs(buff, stderr);
1688#endif
1689}
1690
1691struct TChunkStats {
1692 char *Start, *Finish;

Callers 1

Calls 2

vsprintfFunction · 0.85
fputsFunction · 0.85

Tested by

no test coverage detected