#include <debug.h>
This class exposes many important components of the entire CVC-lite system for use in debugging, keeps all the flags, counters, and timers in the central database, and provides timing and printing functions.
Definition at line 311 of file debug.h.
|
|
|
|
|
|
|
Constructor.
|
|
Destructor (must destroy objects it d_timers).
Definition at line 267 of file debug.cpp. References d_osDumpTrace, and d_timers. |
|
Must be called before Debug class can be safely used.
|
|
Accessing flags by name. If a flag doesn't exist, it is created and initialized to false. Definition at line 352 of file debug.h. References d_flags. Referenced by CVCL::AVHash::AVHash(), and CVCL::Scope::~Scope(). |
|
Accessing tracing flags by name. If a flag doesn't exist, it is created and initialized to false. Definition at line 357 of file debug.h. References d_traceFlags. Referenced by CVCL::VCCmd::evaluateCommand(), traceAll(), and traceFlag(). |
|
Accessing tracing flag by char* name (mostly for GDB).
Definition at line 155 of file debug.cpp. References traceFlag(). |
|
Set tracing of everything on (1) and off (0) [for use in GDB].
Definition at line 158 of file debug.cpp. References traceFlag(). |
|
|
Accessing timers by name. If a timer doesn't exist, it is created and initialized to 0. Referenced by setCurrentTime(). |
|
Check whether to print trace info for a particular flag. Trace flags are the same DebugFlag objects, but live in a different namespace from the normal debug flags Referenced by CVCL::SearchEngineFast::analyzeUIPs(), CVCL::SearchEngineFast::fixConflict(), CVCL::CNF_TheoremProducer::learnedClause(), CVCL::SearchImplBase::newUserAssumption(), and CVCL::Scope::~Scope(). |
|
Create a new "private" timer, initially set to 0. The new timer will not be added to the set of timers, will not have a name, and will not be printed by 'printAll()'. It is intended to be used to measure time intervals which are later added or assigned to the named timers. |
|
Set the timer to the current time (whatever that means).
Definition at line 303 of file debug.cpp. References CVCL::DebugTimer::d_time. Referenced by setCurrentTime(). |
|
Definition at line 387 of file debug.h. References setCurrentTime(), and timer(). |
|
Set the timer to the difference between current time and the time stored in the timer: timer = currentTime - timer. Intended to obtain the time interval since the last call to setCurrentTime() with that timer. Definition at line 312 of file debug.cpp. References CVCL::DebugTimer::d_time. |
|
Return the ostream used for debugging output.
Definition at line 399 of file debug.h. References d_os. Referenced by CVCL::SearchEngineFast::analyzeUIPs(), CVCL::TheoryArith::kidsCanonical(), CVCL::CNF_TheoremProducer::learnedClause(), CVCL::SearchImplBase::newUserAssumption(), and CVCL::Scope::~Scope(). |
|
Return the ostream for dumping trace. If the stream is not initialized, open the file If the filename is empty or "-", then return cout (but do not initialize the stream in this case). Definition at line 325 of file debug.cpp. References d_dumpName, and d_osDumpTrace. |
|
Print an entry to the dump file.
|
|
Set the debugging ostream.
Definition at line 408 of file debug.h. References d_os. |
|
Print all the collected data if "DEBUG" flag is set to 'os'.
Referenced by main(), and sighandler(). |
|
Print all the collected data if "DEBUG" flag is set to the default debug stream.
Definition at line 414 of file debug.h. References d_os. |
|
Get the current scope level.
|
|
Command line options for tracing; these override the TRACE command.
|
|
name of dump file
Definition at line 316 of file debug.h. Referenced by getOSDumpTrace(). |
|
Definition at line 318 of file debug.h. Referenced by getOS(), printAll(), and setOS(). |
|
Definition at line 320 of file debug.h. Referenced by getOSDumpTrace(), and ~Debug(). |
|
Set of flags.
Definition at line 333 of file debug.h. Referenced by flag(). |
|
Set of trace flags.
Definition at line 334 of file debug.h. Referenced by traceFlag(). |
|
Set of counters.
Definition at line 335 of file debug.h. Referenced by counter(). |
|
Set of timers. Note, that the d_timers map does *not* own the pointers; so the objects in d_timers must be destroyed explicitly in our destructor. Definition at line 339 of file debug.h. Referenced by ~Debug(). |