Adapted from this: http://www.no-ack.org/2010/12/yet-another-profiling-middleware-for.html Settings:
PROFILE_MIDDLEWARE_SORT
: A list of criteria according to which the profiler stats will be sorted. Equivalent to Stats.sort_stats.PROFILE_MIDDLEWARE_RESTRICTIONS
: A list of restrictions used to limit the profiler stats. Each restriction is either an integer (to select a count of lines) or a decimal fraction between 0.0 and 1.0 inclusive (to select a percentage of lines), or a regular expression (to pattern match the standard name that is printed). Equivalent to the arguments passed to Stats.print_stats.PROFILE_MIDDLEWARE_STRIP_DIRS
: If set to True, removes all leading path information from filenames in the profiler stats. Equivalent to Stats.strip_dirs.PROFILE_MIDDLEWARE_JSON
: Enabl