From 7bdb85453d16106ebf4d4af106720d917e221ad9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Oct 2013 15:34:57 +0200 Subject: printStats(): Print the size of the symbol table in bytes --- src/libexpr/eval.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libexpr/eval.cc') diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index df129eda66b7..0e15a8d9374e 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -1262,6 +1262,7 @@ void EvalState::printStats() printMsg(v, format(" right-biased unions: %1%") % nrOpUpdates); printMsg(v, format(" values copied in right-biased unions: %1%") % nrOpUpdateValuesCopied); printMsg(v, format(" symbols in symbol table: %1%") % symbols.size()); + printMsg(v, format(" size of symbol table: %1%") % symbols.totalSize()); printMsg(v, format(" number of thunks: %1%") % nrThunks); printMsg(v, format(" number of thunks avoided: %1%") % nrAvoided); printMsg(v, format(" number of attr lookups: %1%") % nrLookups); -- cgit 1.4.1