NCBI C++ ToolKit
|
Search Toolkit Book for CGBRequestStatistics
#include <objtools/data_loaders/genbank/impl/statistics.hpp>
Public Types | |
enum | EStatType { eStat_First , eStat_StringSeq_ids = 0 , eStat_Seq_idSeq_ids , eStat_Seq_idGi , eStat_Seq_idAcc , eStat_Seq_idLabel , eStat_Seq_idTaxId , eStat_Seq_idBlob_ids , eStat_BlobState , eStat_BlobVersion , eStat_LoadBlob , eStat_LoadSNPBlob , eStat_LoadSplit , eStat_LoadChunk , eStat_ParseBlob , eStat_ParseSNPBlob , eStat_ParseSplit , eStat_ParseChunk , eStat_AttachBlob , eStat_AttachSNPBlob , eStat_AttachSplit , eStat_AttachChunk , eStat_Hash , eStat_Length , eStat_Type , eStats_Count , eStat_Last = eStats_Count-1 } |
Public Member Functions | |
CGBRequestStatistics (const char *action, const char *entity) | |
const char * | GetAction (void) const |
const char * | GetEntity (void) const |
size_t | GetCount (void) const |
double | GetTime (void) const |
double | GetSize (void) const |
void | PrintStat (void) const |
void | AddTime (double time, size_t count=1) |
void | AddTimeSize (double time, double size) |
Static Public Member Functions | |
static const CGBRequestStatistics & | GetStatistics (EStatType type) |
static void | PrintStatistics (void) |
Static Protected Member Functions | |
static void | x_Add (atomic< double > &sum, double v) |
Private Attributes | |
const char * | m_Action |
const char * | m_Entity |
atomic< size_t > | m_Count |
atomic< double > | m_Time |
atomic< double > | m_Size |
Definition at line 39 of file statistics.hpp.
Definition at line 42 of file statistics.hpp.
Definition at line 97 of file dispatcher.cpp.
|
inline |
Definition at line 97 of file statistics.hpp.
References count.
Referenced by CReadDispatcher::LogStat().
|
inline |
Definition at line 102 of file statistics.hpp.
References ncbi::grid::netcache::search::fields::size.
Referenced by CReadDispatcher::LogStat().
|
inline |
Definition at line 76 of file statistics.hpp.
Referenced by PrintStat().
|
inline |
Definition at line 82 of file statistics.hpp.
Referenced by PrintStat().
|
inline |
Definition at line 79 of file statistics.hpp.
Referenced by PrintStat().
|
inline |
Definition at line 88 of file statistics.hpp.
Referenced by PrintStat().
|
static |
Definition at line 104 of file dispatcher.cpp.
References eStat_Last, NCBI_THROW_FMT, sx_Statistics, and type.
|
inline |
Definition at line 85 of file statistics.hpp.
Referenced by PrintStat().
void CGBRequestStatistics::PrintStat | ( | void | ) | const |
Definition at line 114 of file dispatcher.cpp.
References count, GetAction(), GetCount(), GetEntity(), GetSize(), GetTime(), LOG_POST_X, and ncbi::grid::netcache::search::fields::size.
Referenced by PrintStatistics().
|
static |
Definition at line 143 of file dispatcher.cpp.
References eStat_First, eStat_Last, PrintStat(), sx_Statistics, and type.
Referenced by CReadDispatcher::~CReadDispatcher().
|
inlinestaticprotected |
Definition at line 109 of file statistics.hpp.
|
private |
Definition at line 117 of file statistics.hpp.
|
private |
Definition at line 119 of file statistics.hpp.
|
private |
Definition at line 118 of file statistics.hpp.
|
private |
Definition at line 121 of file statistics.hpp.
|
private |
Definition at line 120 of file statistics.hpp.