Module Expr Str Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias If Call NameLoad NameLoad Str NameLoad body Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad Call AttributeLoad NameLoad attr comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad Str keyword ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd CompareNotIn Str Call AttributeLoad NameLoad attr Str Str CompareIn SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Index Num NameLoad body If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad Str NameLoad body Assign NameStore Call NameLoad Str keyword ListLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd Call NameLoad NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd Call NameLoad NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str decorator_list For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Return Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Speedbar module

This provides performance metrics, details of operations performed, and Chrome SpeedTracer integration
for page loads.

Information is provided by a set of modules, which are responsible for recording and reporting data.
The collected data is then collected and made available via template tags, headers, and a HAR file.

On startup each module is given a chance to initialize itself, typically this consists of monkey
patching a set of built in django functionality. A per request module object is created in response
to the start of each request. Over the course of the request modules record data, using thread local
storage to associate correctly with the right request. A middleware then writes out summary data,
and the headers required to fetch more detailed information from the server. Finally the request_finished
signal handler stores detailed information to memcache which can then be retrieved.

 N/A re django.conf settings django.core.signals request_started request_finished django.core.urlresolvers reverse django.utils.encoding smart_unicode smart_str speedbar.signals setup_request_tracing store_request_trace speedbar.utils init_modules speedbar.modules.base RequestTrace N/A N/A getattr settings SPEEDBAR_ENABLE True N/A N/A N/A init_modules N/A N/A N/A request_started connect setup_request_tracing dispatch_uid request_started_speedbar_setup_request_tracing N/A N/A N/A request_finished connect store_request_trace dispatch_uid request_started_speedbar_store_request_trace N/A HTML_TYPES N/A text/html application/xhtml+xml N/A METRIC_PLACEHOLDER_RE N/A N/A re compile <span data-module="(?P<module>[^"]+)" data-metric="(?P<metric>[^"]+)"></span> SpeedbarMiddleware N/A object N/A N/A 
    Middleware module to add speedbar related headers to respones and replace any
    speedbar template tags with their correct values.
    For most accurate results place this as near to the top of your middleware stack
    as possible.

    If you wish to customize how features are enabled and disabled on a per-request
    basis you can do so by inheriting from this class and overriding some or all of the
    should_ methods.
     process_request N/A N/A self request N/A N/A N/A N/A getattr settings SPEEDBAR_ENABLE True N/A N/A request_trace N/A N/A RequestTrace instance N/A N/A N/A N/A request_trace stacktracer root label N/A %s %s N/A N/A request method N/A request path N/A N/A request_trace request request N/A process_response N/A N/A self request response N/A N/A N/A N/A N/A getattr settings SPEEDBAR_ENABLE True N/A N/A response N/A request_trace N/A N/A RequestTrace instance N/A N/A request_trace response response N/A metrics N/A dict N/A N/A key N/A N/A module get_metrics N/A N/A key module N/A N/A N/A request_trace modules items N/A N/A N/A self should_return_response_headers request N/A N/A N/A N/A self add_response_headers response metrics N/A N/A N/A self should_return_trace_header request N/A N/A N/A response N/A X-TraceUrl N/A reverse speedbar_trace args N/A N/A request_trace id N/A N/A request_trace persist_log True N/A N/A N/A self should_replace_template_tags request N/A N/A N/A N/A gzip N/A N/A response get Content-Encoding N/A N/A N/A N/A N/A N/A response get Content-Type split ; N/A 0 HTML_TYPES N/A N/A N/A hasattr response render N/A N/A N/A N/A response render N/A content N/A smart_unicode N/A response content N/A content N/A N/A self replace_templatetag_placeholders content metrics N/A N/A getattr settings SPEEDBAR_PANEL True N/A N/A panel_url N/A reverse speedbar_panel args N/A N/A request_trace id N/A panel_placeholder_url N/A reverse speedbar_details_for_this_request N/A content N/A N/A content replace panel_placeholder_url panel_url N/A N/A request_trace persist_details True N/A N/A response content N/A smart_str content N/A N/A N/A response get Content-Length None N/A N/A N/A response N/A Content-Length N/A len N/A response content N/A response N/A should_return_response_headers N/A N/A self request N/A N/A N/A N/A getattr settings SPEEDBAR_RESPONSE_HEADERS False N/A should_return_trace_header N/A N/A self request N/A N/A N/A N/A N/A hasattr request user N/A N/A request user is_staff N/A getattr settings SPEEDBAR_TRACE True N/A should_replace_template_tags N/A N/A self request N/A N/A N/A N/A N/A hasattr request user N/A N/A request user is_staff N/A add_response_headers N/A N/A self response metrics N/A N/A N/A 
        Adds all summary metrics to the response headers, so they can be stored in nginx logs if desired.
         sanitize N/A N/A string N/A N/A N/A N/A N/A N/A N/A string title replace - N/A N/A N/A module module_values N/A N/A metrics items N/A N/A N/A key value N/A N/A module_values items N/A N/A N/A response N/A N/A X-Speedbar-%s-%s N/A N/A sanitize module N/A sanitize key value N/A replace_templatetag_placeholders N/A N/A self content metrics N/A N/A N/A 
        The templatetags defined in this module add placeholder values which we replace with true values here. They
        cannot just insert the values directly as not all processing may have happened by that point.
         replace_placeholder N/A N/A match N/A N/A N/A module N/A N/A match group module N/A metric N/A N/A match group metric N/A N/A unicode N/A N/A metrics N/A module N/A metric N/A N/A N/A N/A METRIC_PLACEHOLDER_RE sub replace_placeholder content N/A N/A