w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <Rstats.hpp>
Public Member Functions | |
Rstats () | |
Default constructor. | |
Rstats (const Rstats &rhs) | |
Copy constructor. | |
~Rstats () | |
Destructor. | |
void | Define (size_t ind, const std::string &name, const std::string &text) |
FIXME_docs. | |
void | Set (size_t ind, double val) |
FIXME_docs. | |
void | Inc (size_t ind, double val=1.) |
FIXME_docs. | |
void | Reset () |
FIXME_docs. | |
void | IncLogHist (size_t ind, size_t maskfirst, size_t masklast, size_t val) |
FIXME_docs. | |
void | SetFormat (const char *format, int width=0, int prec=0) |
FIXME_docs. | |
size_t | Size () const |
FIXME_docs. | |
double | Value (size_t ind) const |
FIXME_docs. | |
const std::string & | Name (size_t ind) const |
FIXME_docs. | |
const std::string & | Text (size_t ind) const |
FIXME_docs. | |
size_t | NameMaxLength () const |
FIXME_docs. | |
void | Print (std::ostream &os, const char *format=0, int width=0, int prec=0) const |
FIXME_docs. | |
void | Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const |
FIXME_docs. | |
double | operator[] (size_t ind) const |
FIXME_docs. | |
Rstats & | operator= (const Rstats &rhs) |
FIXME_docs. | |
Private Attributes | |
std::vector< double > | fValue |
counter value | |
std::vector< std::string > | fName |
counter name | |
std::vector< std::string > | fText |
counter text | |
std::uint32_t | fHash |
hash value for name+text | |
std::string | fFormat |
default format for Print | |
int | fWidth |
default width for Print | |
int | fPrec |
default precision for Print | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, const Rstats &obj) |
ostream insertion operator. | |
FIXME_docs.
Definition at line 28 of file Rstats.hpp.
Retro::Rstats::Rstats | ( | ) |
Default constructor.
Definition at line 41 of file Rstats.cpp.
Retro::Rstats::Rstats | ( | const Rstats & | rhs | ) |
Copy constructor.
Definition at line 54 of file Rstats.cpp.
Retro::Rstats::~Rstats | ( | ) |
Destructor.
Definition at line 66 of file Rstats.cpp.
void Retro::Rstats::Define | ( | size_t | ind, |
const std::string & | name, | ||
const std::string & | text | ||
) |
FIXME_docs.
Definition at line 72 of file Rstats.cpp.
References fHash, fName, fText, fValue, and Size().
Referenced by Retro::RlinkConnect::RlinkConnect(), Retro::RlinkPacketBufRcv::RlinkPacketBufRcv(), Retro::RlinkPacketBufSnd::RlinkPacketBufSnd(), Retro::RlinkPort::RlinkPort(), Retro::RlinkPortCuff::RlinkPortCuff(), Retro::RlinkServer::RlinkServer(), Retro::Rw11Cntl::Rw11Cntl(), Retro::Rw11CntlDEUNA::Rw11CntlDEUNA(), Retro::Rw11CntlDL11::Rw11CntlDL11(), Retro::Rw11CntlDZ11::Rw11CntlDZ11(), Retro::Rw11CntlLP11::Rw11CntlLP11(), Retro::Rw11CntlPC11::Rw11CntlPC11(), Retro::Rw11CntlRHRP::Rw11CntlRHRP(), Retro::Rw11CntlRK11::Rw11CntlRK11(), Retro::Rw11CntlRL11::Rw11CntlRL11(), Retro::Rw11CntlTM11::Rw11CntlTM11(), Retro::Rw11Rdma::Rw11Rdma(), Retro::Rw11RdmaDisk::Rw11RdmaDisk(), Retro::Rw11UnitStream::Rw11UnitStream(), Retro::Rw11UnitTerm::Rw11UnitTerm(), Retro::Rw11VirtDisk::Rw11VirtDisk(), Retro::Rw11VirtDiskOver::Rw11VirtDiskOver(), Retro::Rw11VirtDiskRam::Rw11VirtDiskRam(), Retro::Rw11VirtEth::Rw11VirtEth(), Retro::Rw11VirtStream::Rw11VirtStream(), Retro::Rw11VirtTape::Rw11VirtTape(), Retro::Rw11VirtTerm::Rw11VirtTerm(), and Retro::Rw11VirtTermTcp::Rw11VirtTermTcp().
|
inline |
|
inline |
FIXME_docs.
Definition at line 29 of file Rstats.ipp.
References fValue.
Referenced by Retro::Rw11CntlDEUNA::AttnHandler(), Retro::Rw11CntlDL11::AttnHandler(), Retro::Rw11CntlDZ11::AttnHandler(), Retro::Rw11CntlLP11::AttnHandler(), Retro::Rw11CntlPC11::AttnHandler(), Retro::Rw11CntlRHRP::AttnHandler(), Retro::Rw11CntlRK11::AttnHandler(), Retro::Rw11CntlRL11::AttnHandler(), Retro::Rw11CntlTM11::AttnHandler(), Retro::RlinkServer::CallAttnHandler(), Retro::RlinkConnect::DecodeAttnNotify(), Retro::RlinkConnect::DecodeResponse(), Retro::RlinkConnect::EncodeRequest(), Retro::RlinkServerEventLoop::EventLoop(), Retro::RlinkConnect::Exec(), Retro::Rw11CntlDEUNA::ExecGetcmd(), Retro::RlinkConnect::ExecPart(), Retro::Rw11VirtDiskOver::Flush(), Retro::Rw11VirtStream::Flush(), Retro::RlinkPacketBufRcv::GetEcode(), IncLogHist(), Retro::Rw11VirtTermTcp::ListenPollHandler(), Retro::RlinkPortCuff::PollfdAdd(), Retro::RlinkPortCuff::PollfdRemove(), Retro::Rw11RdmaDisk::PostRdmaHook(), Retro::Rw11CntlPC11::PpProcessBuf(), Retro::Rw11CntlLP11::ProcessBuf(), Retro::RlinkPacketBufRcv::ProcessDataFill(), Retro::RlinkPacketBufRcv::ProcessDataIdle(), Retro::Rw11CntlPC11::PrProcessBuf(), Retro::Rw11Rdma::QueueRMem(), Retro::Rw11Rdma::QueueWMem(), Retro::RlinkPort::RawRead(), Retro::RlinkPort::RawWrite(), Retro::Rw11CntlDEUNA::RcvCallback(), Retro::Rw11VirtEthTap::RcvPollHandler(), Retro::Rw11VirtTermPty::RcvPollHandler(), Retro::Rw11VirtTermTcp::RcvPollHandler(), Retro::Rw11Rdma::RdmaHandler(), Retro::Rw11VirtDiskFile::Read(), Retro::Rw11VirtDiskOver::Read(), Retro::Rw11VirtDiskRam::Read(), Retro::RlinkPort::Read(), Retro::Rw11VirtStream::Read(), Retro::Rw11VirtTapeTap::ReadRecord(), Retro::Rw11VirtTapeTap::Rewind(), Retro::RlinkServer::RlinkHandler(), Retro::Rw11CntlDZ11::RxProcess(), Retro::Rw11CntlDL11::RxProcessBuf(), Retro::Rw11CntlDEUNA::RxRingHandler(), Retro::Rw11VirtStream::Seek(), Retro::Rw11VirtEthTap::Snd(), Retro::Rw11UnitTerm::Snd(), Retro::Rw11VirtTermPty::Snd(), Retro::Rw11VirtTermTcp::Snd(), Retro::RlinkConnect::SndOob(), Retro::RlinkPacketBufSnd::SndPacket(), Retro::Rw11VirtTapeTap::SpaceBack(), Retro::Rw11VirtTapeTap::SpaceForw(), Retro::Rw11UnitTerm::StatIncRx(), Retro::Rw11UnitTerm::StatIncTx(), Retro::Rw11VirtStream::Tell(), Retro::Rw11CntlDZ11::TxProcess(), Retro::Rw11CntlDL11::TxProcessBuf(), Retro::Rw11CntlDEUNA::TxRingHandler(), Retro::Rw11CntlDEUNA::UpdateStat16(), Retro::Rw11CntlDEUNA::UpdateStat32(), Retro::RlinkPortCuff::USBReadDone(), Retro::RlinkPortCuff::USBWriteDone(), Retro::Rw11UnitStream::VirtRead(), Retro::Rw11UnitStream::VirtWrite(), Retro::RlinkServer::WakeupHandler(), Retro::RlinkPort::Write(), Retro::Rw11VirtStream::Write(), Retro::Rw11VirtDiskFile::Write(), Retro::Rw11VirtDiskOver::Write(), Retro::Rw11VirtDiskRam::Write(), Retro::Rw11CntlLP11::WriteChar(), Retro::Rw11RdmaDisk::WriteCheck(), Retro::Rw11VirtTapeTap::WriteEof(), and Retro::Rw11VirtTapeTap::WriteRecord().
void Retro::Rstats::Reset | ( | ) |
FIXME_docs.
Definition at line 105 of file Rstats.cpp.
References fValue.
Referenced by Retro::RtclStats::Exec().
void Retro::Rstats::IncLogHist | ( | size_t | ind, |
size_t | maskfirst, | ||
size_t | masklast, | ||
size_t | val | ||
) |
void Retro::Rstats::SetFormat | ( | const char * | format, |
int | width = 0 , |
||
int | prec = 0 |
||
) |
|
inline |
FIXME_docs.
Definition at line 38 of file Rstats.ipp.
References fValue.
Referenced by Define(), Dump(), Retro::RtclStats::Exec(), NameMaxLength(), operator=(), and Print().
|
inline |
FIXME_docs.
Definition at line 46 of file Rstats.ipp.
References fValue.
Referenced by Retro::RtclStats::Exec().
|
inline |
FIXME_docs.
Definition at line 54 of file Rstats.ipp.
References fName.
Referenced by Retro::RtclStats::Exec().
|
inline |
FIXME_docs.
Definition at line 62 of file Rstats.ipp.
References fText.
Referenced by Retro::RtclStats::Exec().
size_t Retro::Rstats::NameMaxLength | ( | ) | const |
void Retro::Rstats::Print | ( | std::ostream & | os, |
const char * | format = 0 , |
||
int | width = 0 , |
||
int | prec = 0 |
||
) | const |
FIXME_docs.
Definition at line 157 of file Rstats.cpp.
References fFormat, fName, fPrec, fText, fValue, fWidth, NameMaxLength(), Retro::RosPrintf(), and Size().
Referenced by Retro::RtclStats::Exec(), and operator<<().
void Retro::Rstats::Dump | ( | std::ostream & | os, |
int | ind = 0 , |
||
const char * | text = 0 , |
||
int | detail = 0 |
||
) | const |
FIXME_docs.
Definition at line 178 of file Rstats.cpp.
References fFormat, fHash, fName, fPrec, fText, fValue, fWidth, Retro::RosPrintf(), and Size().
Referenced by Retro::RlinkConnect::Dump(), Retro::RlinkPacketBuf::Dump(), Retro::RlinkPort::Dump(), Retro::RlinkServer::Dump(), Retro::Rw11Cntl::Dump(), Retro::Rw11Cpu::Dump(), Retro::Rw11Rdma::Dump(), Retro::Rw11Unit::Dump(), and Retro::Rw11Virt::Dump().
|
inline |
|
related |
|
private |
counter value
Definition at line 63 of file Rstats.hpp.
Referenced by Define(), Dump(), Inc(), IncLogHist(), operator=(), operator[](), Print(), Reset(), Set(), Size(), and Value().
|
private |
counter name
Definition at line 64 of file Rstats.hpp.
Referenced by Define(), Dump(), Name(), NameMaxLength(), operator=(), and Print().
|
private |
counter text
Definition at line 65 of file Rstats.hpp.
Referenced by Define(), Dump(), operator=(), Print(), and Text().
|
private |
hash value for name+text
Definition at line 66 of file Rstats.hpp.
Referenced by Define(), Dump(), and operator=().
|
private |
default format for Print
Definition at line 67 of file Rstats.hpp.
Referenced by Dump(), operator=(), Print(), and SetFormat().
|
private |
default width for Print
Definition at line 68 of file Rstats.hpp.
Referenced by Dump(), operator=(), Print(), and SetFormat().
|
private |
default precision for Print
Definition at line 69 of file Rstats.hpp.
Referenced by Dump(), operator=(), Print(), and SetFormat().