14#warning ZYPP_BASE_DEBUG_H included
15#ifndef ZYPP_BASE_DEBUG_H
16#define ZYPP_BASE_DEBUG_H
21#include <zypp/base/Logger.h>
22#include <zypp/base/String.h>
23#include <zypp/ExternalProgram.h>
24#include <zypp-core/base/ProvideNumericId>
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;
115 {
static unsigned long _val = 0;
119 {
_ident = __PRETTY_FUNCTION__;
149 <<
") [" << &obj <<
"] "; }
164 L_DBG(
"DEBUG") << what_r << self_r <<
" (" << self_r.
_ident <<
")" << std::endl;
171 L_DBG(
"DEBUG") << what_r << self_r <<
"( " << rhs_r <<
")" <<
" (" << self_r.
_ident <<
")" << std::endl;
Execute a program and give access to its io An object of this class encapsulates the execution of an ...
int close()
Wait for the progamm to complete.
std::string receiveLine()
Read one line from the input stream.
String related utilities and Regular expression matching.
void traceCAD(TraceCADBase::What what_r, const TraceCAD< Tp > &self_r, const TraceCAD< Tp > &rhs_r)
Drop a log line about the traced method.
std::ostream & dumpMemOn(std::ostream &str, const std::string &msg=std::string())
'ps v'
std::string numstring(char n, int w=0)
Easy-to use interface to the ZYPP dependency resolver.
Base class for objects providing a numeric Id.
TNumericIdType numericId() const
Base for a simple tracer.
std::ostream & operator<<(std::ostream &str, TraceCADBase::What obj)
Stream output of TraceCADBase::What.
A simple tracer for (copy) Construction, Assignment, and Destruction.
TraceCAD(const TraceCAD &rhs)
TraceCAD & operator=(TraceCAD &&rhs)
TraceCAD & operator=(const TraceCAD &rhs)
static unsigned long & _totalTraceCAD()
std::ostream & operator<<(std::ostream &str, const TraceCAD< Tp > &obj)
Stream output.