[pypy-commit] pypy default: kill timelog() thing: there are profilers for that
rlamy
noreply at buildbot.pypy.org
Fri Mar 27 17:45:45 CET 2015
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch:
Changeset: r76594:da90c30dc0dd
Date: 2015-03-27 16:45 +0000
http://bitbucket.org/pypy/pypy/changeset/da90c30dc0dd/
Log: kill timelog() thing: there are profilers for that
diff --git a/rpython/rtyper/test/test_llinterp.py b/rpython/rtyper/test/test_llinterp.py
--- a/rpython/rtyper/test/test_llinterp.py
+++ b/rpython/rtyper/test/test_llinterp.py
@@ -25,22 +25,12 @@
py.log._setstate(mod.logstate)
-
-def timelog(prefix, call, *args, **kwds):
- #import time
- #print prefix, "...",
- #start = time.time()
- res = call(*args, **kwds)
- #elapsed = time.time() - start
- #print "%.2f secs" % (elapsed,)
- return res
-
def gengraph(func, argtypes=[], viewbefore='auto', policy=None,
backendopt=False, config=None, **extraconfigopts):
t = TranslationContext(config=config)
t.config.set(**extraconfigopts)
a = t.buildannotator(policy=policy)
- timelog("annotating", a.build_types, func, argtypes, main_entry_point=True)
+ a.build_types(func, argtypes, main_entry_point=True)
a.validate()
if viewbefore == 'auto':
viewbefore = getattr(option, 'view', False)
@@ -49,13 +39,13 @@
t.view()
global typer # we need it for find_exception
typer = t.buildrtyper()
- timelog("rtyper-specializing", typer.specialize)
+ typer.specialize()
#t.view()
- timelog("checking graphs", t.checkgraphs)
+ t.checkgraphs()
if backendopt:
from rpython.translator.backendopt.all import backend_optimizations
backend_optimizations(t)
- timelog("checking graphs", t.checkgraphs)
+ t.checkgraphs()
if viewbefore:
t.view()
desc = t.annotator.bookkeeper.getdesc(func)
More information about the pypy-commit
mailing list