13 #warning ZYPP_BASE_DEBUG_H included
14 #ifndef ZYPP_BASE_DEBUG_H
15 #define ZYPP_BASE_DEBUG_H
35 #define TAG INT << __PRETTY_FUNCTION__ << std::endl
38 inline std::ostream &
dumpMemOn( std::ostream & str,
const std::string & msg = std::string() )
50 str <<
"MEMUSAGE " << msg << std::endl;
112 {
static unsigned long _val = 0;
116 {
_ident = __PRETTY_FUNCTION__;
137 inline std::ostream & operator<<( std::ostream & str, const TraceCAD<_Tp> & obj )
138 {
return str <<
"(ID " << obj.numericId() <<
", TOTAL " << obj._totalTraceCAD()
139 <<
") [" << &obj <<
"] "; }
154 _DBG(
"DEBUG") << what_r << self_r <<
" (" << self_r.
_ident <<
")" << std::endl;
159 _DBG(
"DEBUG") << what_r << self_r <<
"( " << rhs_r <<
")" <<
" (" << self_r.
_ident <<
")" << std::endl;
172 #endif // ZYPP_BASE_DEBUG_H
std::ostream & operator<<(std::ostream &str, TraceCADBase::What obj)
A simple tracer for (copy) Construction, Assignment, and Destruction.
void traceCAD(TraceCADBase::What what_r, const TraceCAD< _Tp > &self_r, const TraceCAD< _Tp > &rhs_r)
Drop a log line about the traced method.
TraceCAD(const TraceCAD &rhs)
TraceCAD & operator=(const TraceCAD &rhs)
Base class for objects providing a numeric Id.
Execute a program and give access to its io An object of this class encapsulates the execution of an ...
std::string receiveLine()
Read one line from the input stream.
std::string numstring(char n, int w=0)
int close()
Wait for the progamm to complete.
Base for a simple tracer.
static unsigned long & _totalTraceCAD()
std::ostream & dumpMemOn(std::ostream &str, const std::string &msg=std::string())
'ps v'