1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

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

This commit is contained in:
Eelco Dolstra 2013-10-08 15:34:57 +02:00
parent 9deb822180
commit 7bdb85453d
3 changed files with 15 additions and 0 deletions

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;
}
}