[pypy-svn] r59969 - pypy/build/benchmem
xoraxax at codespeak.net
xoraxax at codespeak.net
Mon Nov 17 22:12:35 CET 2008
Author: xoraxax
Date: Mon Nov 17 22:12:35 2008
New Revision: 59969
Modified:
pypy/build/benchmem/report_graphic.py
Log:
Disable the incremental aspect of appprofile graphs.
Modified: pypy/build/benchmem/report_graphic.py
==============================================================================
--- pypy/build/benchmem/report_graphic.py (original)
+++ pypy/build/benchmem/report_graphic.py Mon Nov 17 22:12:35 2008
@@ -80,11 +80,12 @@
pylab.show()
def plot_appprofiles(self, name2results, base_snapshots):
- """ This function plots incremental memory consumption of app benchmarks
- (without interpreter size if possible) versus time
+ """ This function plots memory consumption of app benchmarks
+ versus time
"""
SHOW_TS = False
+ SUBTRACT_BASE = False
for name, results in name2results:
pylab.clf()
plots = []
@@ -96,7 +97,7 @@
x = [val - min_ts for val in timestamps]
else:
x = [(val - min_ts)/d_ts*100 for val in timestamps]
- if base_snapshots:
+ if base_snapshots and SUBTRACT_BASE:
basesize = base_snapshots[result.executable].heap_and_data(result)
else:
basesize = 0
@@ -111,7 +112,7 @@
pylab.legend(plots, [result.executable_short for result in results])
xlabel = ["wall clock time (%)", "wall clock time (s)"][SHOW_TS]
pylab.xlabel(xlabel)
- ylabel = ["", "incremental "][bool(basesize)] + "heap and dirty static data consumption (kB)"
+ ylabel = ["", "incremental "][bool(basesize) and SUBTRACT_BASE] + "heap and dirty static data consumption (kB)"
pylab.ylabel(ylabel)
if self.basepath is not None:
pylab.savefig(self.basepath + 'appprofiles_%s%s' % (name, EXT))
More information about the Pypy-commit
mailing list