[pypy-commit] pypy vmprof: actually define the unique id
fijal
noreply at buildbot.pypy.org
Wed Feb 4 10:50:04 CET 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: vmprof
Changeset: r75697:90e71bdbaf0c
Date: 2015-02-04 11:49 +0200
http://bitbucket.org/pypy/pypy/changeset/90e71bdbaf0c/
Log: actually define the unique id
diff --git a/pypy/module/pypyjit/interp_jit.py b/pypy/module/pypyjit/interp_jit.py
--- a/pypy/module/pypyjit/interp_jit.py
+++ b/pypy/module/pypyjit/interp_jit.py
@@ -35,6 +35,9 @@
name = opcode_method_names[ord(bytecode.co_code[next_instr])]
return '%s #%d %s' % (bytecode.get_repr(), next_instr, name)
+def get_unique_id(next_instr, is_being_profiled, bytecode):
+ return bytecode._unique_id
+
def should_unroll_one_iteration(next_instr, is_being_profiled, bytecode):
return (bytecode.co_flags & CO_GENERATOR) != 0
@@ -45,6 +48,7 @@
virtualizables = ['frame']
pypyjitdriver = PyPyJitDriver(get_printable_location = get_printable_location,
+ get_unique_id = get_unique_id,
should_unroll_one_iteration =
should_unroll_one_iteration,
name='pypyjit')
More information about the pypy-commit
mailing list