[pypy-commit] pypy new-jit-log: fixed tests and added missing method in rvmprof/__init__.py (for disable_jitlog)
plan_rich
pypy.commits at gmail.com
Wed Apr 27 09:05:46 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: new-jit-log
Changeset: r83981:638ea201b5b8
Date: 2016-04-27 15:04 +0200
http://bitbucket.org/pypy/pypy/changeset/638ea201b5b8/
Log: fixed tests and added missing method in rvmprof/__init__.py (for
disable_jitlog)
diff --git a/rpython/rlib/rvmprof/__init__.py b/rpython/rlib/rvmprof/__init__.py
--- a/rpython/rlib/rvmprof/__init__.py
+++ b/rpython/rlib/rvmprof/__init__.py
@@ -40,3 +40,6 @@
def disable():
_get_vmprof().disable()
+
+def disable_jitlog():
+ _get_vmprof().disable_jitlog()
diff --git a/rpython/rlib/test/test_jitlog.py b/rpython/rlib/test/test_jitlog.py
--- a/rpython/rlib/test/test_jitlog.py
+++ b/rpython/rlib/test/test_jitlog.py
@@ -48,8 +48,8 @@
file.ensure()
fd = file.open('wb')
logger.cintf.jitlog_init(fd.fileno())
- logger.start_new_trace()
- log_trace = logger.log_trace(jl.MARK_TRACE, self.make_metainterp_sd(), None)
+ logger.start_new_trace(self.make_metainterp_sd())
+ log_trace = logger.log_trace(jl.MARK_TRACE, None, None)
op = ResOperation(rop.DEBUG_MERGE_POINT, [ConstInt(0), ConstInt(0), ConstInt(0)])
log_trace.write([], [op])
#the next line will close 'fd'
@@ -60,7 +60,7 @@
jl.encode_str('loop') + jl.encode_le_addr(0) + \
chr(jl.MARK_TRACE) + jl.encode_le_addr(0) + \
chr(jl.MARK_INPUT_ARGS) + jl.encode_str('') + \
- chr(jl.MARK_INIT_MERGE_POINT) + b'\x01s\x00i\x08s\x00i\x10s' + \
+ chr(jl.MARK_INIT_MERGE_POINT) + b'\x05\x00\x01s\x00i\x08s\x00i\x10s' + \
chr(jl.MARK_MERGE_POINT) + \
b'\xff' + encode_str('/home/pypy/jit.py') + \
b'\x00' + encode_le_64bit(0) + \
More information about the pypy-commit
mailing list