summaryrefslogtreecommitdiff
path: root/src/smt/smt_engine_scope.h
diff options
context:
space:
mode:
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>2021-04-14 21:37:12 +0200
committerGitHub <noreply@github.com>2021-04-14 19:37:12 +0000
commit9f14a0d6feca8d8ba727f88ef7dda5268183bb56 (patch)
tree54d1500f368312ade8abb1fb9962976ae61bedfc /src/smt/smt_engine_scope.h
parente5c26181dab76704ad9a47126585fe2ec9d6cac2 (diff)
Refactor / reimplement statistics (#6162)
This PR refactors how we collect statistics. It splits the current statistic values into the values and a proxy object. The actual values now live inside the registry (making the ownership model way easier) while the proxy object are handed to whoever wants to collect a new statistic. It also extends the C++ API to obtain and inspect the statistics. To change the ownership, this PR needs to touch every single statistic in the whole codebase and change how it is registered.
Diffstat (limited to 'src/smt/smt_engine_scope.h')
-rw-r--r--src/smt/smt_engine_scope.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/smt/smt_engine_scope.h b/src/smt/smt_engine_scope.h
index a1d660adf..76bc5c641 100644
--- a/src/smt/smt_engine_scope.h
+++ b/src/smt/smt_engine_scope.h
@@ -51,7 +51,7 @@ class SmtScope : public NodeManagerScope
* This returns the StatisticsRegistry attached to the currently in scope
* SmtEngine.
*/
- static StatisticsRegistry* currentStatisticsRegistry();
+ static StatisticsRegistry& currentStatisticsRegistry();
private:
/** The old SmtEngine, to be restored on destruction. */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback