[pypy-issue] Issue #2250: Result of jit_hooks.stats_get_loop_run_times is always empty (pypy/pypy)

Magnus Morton issues-reply at bitbucket.org
Thu Mar 3 18:47:26 EST 2016


New issue 2250: Result of jit_hooks.stats_get_loop_run_times is always empty
https://bitbucket.org/pypy/pypy/issues/2250/result-of

Magnus Morton:

I've noticed that the result of ``` jit_hooks.stats_get_loop_run_times(None)```
 is always empty now, even when ```jit_hooks.stats_set_debug(None, True)``` has been called and some loops have been compiled and executed.

I suspect the problem is that the appropriate debug instructions are not getting injected into the traces in the first place. in [jit/backend/x86/assembler.py](https://bitbucket.org/pypy/pypy/src/bc2523a1a870a2ecb8e5c55f6988a3759a1f6589/rpython/jit/backend/x86/assembler.py?at=default&fileviewer=file-view-default) in ```assemble_loop```:

```
#!python

if log:
    operations = self._inject_debugging_code(looptoken, operations,
                                             'e', looptoken.number)
```
```log``` seems to always be false.

The latest revision I know for sure had the correct behaviour was 79086:32f5175b444e






More information about the pypy-issue mailing list