summaryrefslogtreecommitdiff
path: root/src/theory/theory_engine.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-03-08 21:43:45 +0000
committerMorgan Deters <mdeters@gmail.com>2011-03-08 21:43:45 +0000
commit5fbb341a673ec5fa42f260bb137f423ac2aea324 (patch)
tree2e33f2c4bec2c2268c2f02606accd3fca84e7a53 /src/theory/theory_engine.h
parentdff18e8f9b2490602226317ebdb9fad4e0ccead9 (diff)
Clean up Theory base class as per code review bug #60; also fixes to CodeTimer statistic, and adding a CodeTimer to TheoryEngine::EngineOutputChannel::newFact() for investigation into (possible) slow or redundant theory registration.
Diffstat (limited to 'src/theory/theory_engine.h')
-rw-r--r--src/theory/theory_engine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/theory/theory_engine.h b/src/theory/theory_engine.h
index 7a82a1b05..4b37d4dd6 100644
--- a/src/theory/theory_engine.h
+++ b/src/theory/theory_engine.h
@@ -74,6 +74,11 @@ class TheoryEngine {
*/
std::vector<TNode> d_propagatedLiterals;
+ /** Time spent in newFact() (largely spent doing term registration) */
+ KEEP_STATISTIC(TimerStat,
+ d_newFactTimer,
+ "theory::newFactTimer");
+
public:
EngineOutputChannel(TheoryEngine* engine, context::Context* context) :
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback