1. Install django-extensions:
2. Add to `local.py`:
3. Run the profiling server passing the directory where profiling data will be saved for each request:
4. Make some requests to the server via browser or other client.
5. Download gprof2dot.py and generate graphs for all the profiled requests:
6. Now in the current directory you have a set of .png files with profiling graphs.