[pypy-dev] freeze in project under pypy
Armin Rigo
arigo at tunes.org
Sun Sep 8 17:40:22 CEST 2013
Hi Max,
As a starting point, try to run pypy with the following environment variable:
PYPYLOG=gc-collect:-
Then look interactively if it seems that the pauses correspond to
blocks {gc-collect ... gc-collect} in the output. I would say that
1500ms looks on the high end of GC times, but is not completely
impossible.
You can also direct the output to a file with
PYPYLOG=gc-collect:logfile
Then you need the tool "rpython/tool/logparser.py" from the PyPy
repository to make sense of the hexadecimal numbers (they are
timestamps) and display the result in a nice graph. You can also try
it with more information, like:
PYPYLOG=:logfile pypy some_command.py
python logparser.py draw-time logfile out.png --mainwidth 8000
A bientôt,
Armin.
More information about the pypy-dev
mailing list