printStats(): Print the size of the symbol table in bytes
This commit is contained in:
		
							parent
							
								
									9deb822180
								
							
						
					
					
						commit
						7bdb85453d
					
				
					 3 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue