238 proxy <<
"Sockets by status:" << endl;
241 proxy << it_st->first <<
": "
292 string is(
"\": "), eol(
",\n\"");
301 proxy <<
"Srv config - "
305 proxy <<
"Threads - "
312 proxy <<
"Sockets - "
317 proxy <<
"Threads flow - "
320 proxy <<
"Sockets flow - "
324 proxy <<
"Jiffies - "
void Unlock(void)
Unlock the mutex.
void Lock(void)
Lock the mutex.
Class used in all diagnostic logging.
CSrvDiagMsg & PrintExtra(void)
Starts "extra" message.
CSrvDiagMsg & PrintParam(CTempString name, CTempString value)
Adds parameter to "request-start" or "extra" message.
void Flush(void)
Finishes current message and prepare to start new one.
Stream-like class to help unify printing some text messages to diagnostics and to any socket.
Task controlling a socket.
CSrvSocketTask & WriteText(CTempString message)
Write text into socket.
CSrvSocketTask & WriteNumber(NumType num)
Write number into socket as string, i.e.
T GetAverage(void) const
Get average of all values in the set.
Uint8 GetCount(void) const
Get number of values in the set.
void Initialize(void)
Initialize all data members.
Uint8 GetSum(void) const
Get sum of all values in the set.
void AddValue(T value)
Add next value into the set.
void AddValues(const CSrvStatTerm< T > &other)
Add all values from another set.
T GetMaximum(void) const
Get maximum value in the set.
double GetDoubleAvg(void) const
TStatusOpenTimes m_SocksByStatus
SSrvStateStat m_StartState
void CopyStartState(CSrvStat *src_stat)
void PrintState(CSrvSocketTask &sock)
void TransferEndState(CSrvStat *src_stat)
void SetMMStat(SMMStat *stat)
void PrintToLogs(CRequestContext *ctx, CSrvPrintProxy &proxy)
void AddAllStats(CSrvStat *src_stat)
CSrvStatTerm< Uint4 > m_CntSockets
CSrvStatTerm< Uint4 > m_CntThreads
void SockOpenActive(void)
void SockClose(int status, Uint8 open_time)
void InitStartState(void)
CSrvStatTerm< Uint8 > m_DoneTasks
TSrvTimeTerm m_SockOpenTime
void SockOpenPassive(void)
void x_PrintUnstructured(CSrvPrintProxy &proxy)
void x_AddStats(CSrvStat *src_stat)
void SchedJiffyStat(Uint8 jiffy_len, Uint8 max_slice, Uint8 exec_time, Uint8 done_tasks, Uint8 wait_time)
void CopyEndState(CSrvStat *src_stat)
void PrintToSocket(CSrvPrintProxy &proxy)
unique_ptr< SMMStat > m_MMStat
void CollectThreads(bool need_clear)
void SaveEndStateStat(void)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TSrvThreadNum s_MaxRunningThreads
static void s_SaveState(SSrvStateStat &state)
Uint8 g_CalcStatPct(Uint8 val, Uint8 total)
string g_ToSmartStr(T num)
double g_AsMSecStat(Uint8 time_usec)
TSrvTimeTerm & g_SrvTimeTerm(Map &map, Key key)
T AtomicAdd(T volatile &var, T add_value)
Uint2 TSrvThreadNum
Type for thread number in TaskServer.
TSrvThreadNum GetCntRunningThreads(void)
SSrvThread * GetCurThread(void)