14 #warning ZYPP_BASE_DEBUG_H included
15 #ifndef ZYPP_BASE_DEBUG_H
16 #define ZYPP_BASE_DEBUG_H
36 #define TAG INT << __PRETTY_FUNCTION__ << std::endl
39 inline std::ostream &
dumpMemOn( std::ostream &
str,
const std::string & msg = std::string() )
51 str <<
"MEMUSAGE " << msg << std::endl;
113 {
static unsigned long _val = 0;
117 {
_ident = __PRETTY_FUNCTION__;
138 inline std::ostream & operator<<( std::ostream & str, const TraceCAD<_Tp> & obj )
139 {
return str <<
"(ID " << obj.numericId() <<
", TOTAL " << obj._totalTraceCAD()
140 <<
") [" << &obj <<
"] "; }
155 _DBG(
"DEBUG") << what_r << self_r <<
" (" << self_r.
_ident <<
")" << std::endl;
160 _DBG(
"DEBUG") << what_r << self_r <<
"( " << rhs_r <<
")" <<
" (" << self_r.
_ident <<
")" << std::endl;
173 #endif // ZYPP_BASE_DEBUG_H
174 #endif // ZYPP_NDEBUG
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.
String related utilities and Regular expression matching.
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'
Easy-to use interface to the ZYPP dependency resolver.