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

Function GetSystemResources

library/cpp/logger/global/rty_formater.cpp:55–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 TString GetSystemResources() {
56 NMemInfo::TMemInfo mi = NMemInfo::GetMemInfo();
57 return PrintSystemResources(mi);
58 }
59
60 TString PrintSystemResources(const NMemInfo::TMemInfo& mi) {
61 return Sprintf(" rss=%0.3fMb, vms=%0.3fMb", mi.RSS * 1.0 / (1024 * 1024), mi.VMS * 1.0 / (1024 * 1024));

Callers 1

FormatMethod · 0.85

Calls 2

GetMemInfoFunction · 0.85
PrintSystemResourcesFunction · 0.85

Tested by

no test coverage detected