Up: Mod Snake
Python 1.5 ships with a broken profile.py. In order to use profiling, the following
steps should be taken:
- Copy the system's profile.py into the snake_lib directory, or another location
where your Python modules are loaded.
Ex: cp /usr/lib/python-1.5/profile.py /path/to/mod_snake/snake_lib/profile2.py
- Change into the directory containing the new profile2.py and patch it with the
profile2.patch which ships with mod_snake.
Ex: patch -p0 < profile2.patch
After those steps, profiling should work with all modules.