printStats(): Print the size of the symbol table in bytes

This commit is contained in:
Eelco Dolstra
2013-10-08 15:37:08 +02:00
parent 9deb822180
commit 7bdb85453d
3 changed files with 15 additions and 0 deletions
+12
View File
@@ -336,4 +336,16 @@ string ExprLambda::showNamePos()
}
/* Symbol table. */
size_t SymbolTable::totalSize() const
{
size_t n = 0;
foreach (Symbols::const_iterator, i, symbols)
n += i->size();
return n;
}
}