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

Method GetConnectionsDebug

library/cpp/netliba/v12/udp_host.cpp:1848–1865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1846 }
1847
1848 TString TUdpHost::GetConnectionsDebug() const {
1849 TString result;
1850 result += "Total:\t";
1851 result += ToString(Connections.GetSize());
1852 result += "\nActive:\t";
1853 result += ToString(Connections.GetActiveSize());
1854 result += "\nSending:\t";
1855 result += ToString(Connections.GetSendingSize());
1856 result += "\n";
1857 for (TConnections::const_iterator i = Connections.Begin(); i != Connections.End(); ++i) {
1858 const TConnection* connection = CheckedCast<const TConnection*>(i->second.Get());
1859 result += connection->GetDebugInfo();
1860 result += "\n";
1861 result += GetPendingDataStatsDebug(connection->GetPendingDataSize());
1862 result += "\n";
1863 }
1864 return result;
1865 }
1866
1867 TString TUdpHost::GetPendingDataStatsDebug(const TRequesterPendingDataStats& pds) const {
1868 char buf[1000];

Callers

nothing calls this directly

Calls 9

GetActiveSizeMethod · 0.80
GetSendingSizeMethod · 0.80
ToStringFunction · 0.50
GetSizeMethod · 0.45
BeginMethod · 0.45
EndMethod · 0.45
GetMethod · 0.45
GetDebugInfoMethod · 0.45
GetPendingDataSizeMethod · 0.45

Tested by

no test coverage detected