[pypy-svn] r58784 - pypy/dist/pypy/translator/tool
xoraxax at codespeak.net
xoraxax at codespeak.net
Tue Oct 7 18:51:01 CEST 2008
Author: xoraxax
Date: Tue Oct 7 18:51:00 2008
New Revision: 58784
Modified:
pypy/dist/pypy/translator/tool/staticsizereport.py
Log:
Add non-verbose reporting to staticsizereport.
Modified: pypy/dist/pypy/translator/tool/staticsizereport.py
==============================================================================
--- pypy/dist/pypy/translator/tool/staticsizereport.py (original)
+++ pypy/dist/pypy/translator/tool/staticsizereport.py Tue Oct 7 18:51:00 2008
@@ -104,7 +104,7 @@
if not guess_module(graph):
yield graph
-def print_aggregated_values_by_module_and_type(database, count_modules_separately=False):
+def print_aggregated_values_by_module_and_type(database, count_modules_separately=False, verbose=False):
" Reports all objects by module and by lltype. "
modules = {}
reports = []
@@ -140,8 +140,11 @@
for size, modulename, report in reports:
if not size:
continue
- print "########### %i %s ####################################" % (size, modulename)
- for line in report:
- print " " * 4 + format_report_line(line)
- print
+ if verbose:
+ print "########### %i %s ####################################" % (size, modulename)
+ for line in report:
+ print " " * 4 + format_report_line(line)
+ print
+ else:
+ print "%i\%s" % (size, modulename)
More information about the Pypy-commit
mailing list