30 #ifndef LSST_PEX_LOGGING_BLOCKTIMINGLOG_H
31 #define LSST_PEX_LOGGING_BLOCKTIMINGLOG_H
37 #include <sys/resource.h>
38 #include <boost/scoped_ptr.hpp>
165 static const std::string
END;
182 int usageFlags=
PARENTUDATA,
const std::string& funcName=
"");
248 const std::string& funcName=
"")
262 const std::string& funcName=
"")
278 std::string msg(
"Starting ");
294 void start(
const std::string& funcName) {
295 if (funcName.length() > 0)
_funcName = funcName;
305 std::string msg(
"Ending ");
343 #endif // end LSST_PEX_BLOCKTIMINGLOG_H
table::Key< std::string > name
void addComment(const std::string &comment)
static const std::string START
BlockTimingLog(const Log &parent, const std::string &name, int tracelev=BlockTimingLog::INSTRUM, int usageFlags=PARENTUDATA, const std::string &funcName="")
Log & operator=(const Log &that)
void send(const LogRecord &record)
const std::string & getFunctionName() const
a place to record messages and descriptions of the state of processing.
void start(const std::string &funcName)
BlockTimingLog * createForBlock(const std::string &name, int tracelev=Log::INHERIT_THRESHOLD, const std::string &funcName="")
int getUsageFlags() const
a container for constructing a single Log record
definition of the LogRecord, RecordProperty and Prop classes
void setUsageFlags(int flags)
static const int INHERIT_THRESHOLD
BlockTimingLog & operator=(const BlockTimingLog &that)
static const std::string STATUS
BlockTimingLog * timeBlock(const std::string &name, int tracelev=Log::INHERIT_THRESHOLD, const std::string &funcName="")
void addProperty(const RecordProperty< T > &property)
int getInstrumentationLevel() const
bool sends(int importance) const
boost::scoped_ptr< struct rusage > _usage
virtual ~BlockTimingLog()
void addUsageFlags(int flags)
void addUsageProps(LogRecord &rec)
BlockTimingLog(const BlockTimingLog &that)
const lsst::daf::base::PropertySet & getPreamble()
static const std::string END