Skip to content

Instantly share code, notes, and snippets.

@goopi
Created October 3, 2014 00:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goopi/2460f96376021874e3c0 to your computer and use it in GitHub Desktop.
Save goopi/2460f96376021874e3c0 to your computer and use it in GitHub Desktop.
Profiling Django using runprofileserver and QCacheGrind
$ # install QCacheGrind (KCacheGrind)
$ brew install qcachegrind
$ brew install graphviz
$ brew linkapps
$ pip install django-extensions
$ # run profiling server
$ ./manage.py runprofileserver 0:3000 --kcachegrind --prof-path=path/to/profiles
$ # open QCacheGrind to analyze the profile data
$ qcachegrind path/to/profiles/profile_name.prof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment