Example #1
0
 def __init__(self, jinja_env, context=None):
     if context is None:
         context = {}
     DebugPanel.__init__(self, jinja_env, context=context)
     self.jinja_env.loader = jinja2.ChoiceLoader(
         [self.jinja_env.loader, template_loader])
     self.data = None
Example #2
0
    def __init__(self, jinja_env, context={}):
        DebugPanel.__init__(self, jinja_env, context=context)

        self.using_main_thread = isinstance(threading.current_thread(),
                                            threading._MainThread)
        if not self.using_main_thread:
            self.is_active = False
Example #3
0
 def __init__(self, jinja_env, context={}):
     DebugPanel.__init__(self, jinja_env, context=context)
     self.summary = None
     self.tracker = None
     self.tracked = None
     if current_app.config.get('DEBUG_TB_PROFILER_MEMORY_ENABLED'):
         self.track_usage = True
     else:
         self.track_usage = False
 def __init__(self, jinja_env, context={}):
     DebugPanel.__init__(self, jinja_env, context=context)
     self.summary = None
     self.tracker = None
     self.tracked = None
     if current_app.config.get('DEBUG_TB_PROFILER_MEMORY_ENABLED'):
         self.track_usage = True
     else:
         self.track_usage = False
Example #5
0
    def __init__(self, jinja_env, context={}):
        DebugPanel.__init__(self, jinja_env, context=context)

        self.jinja_env.loader = jinja2.ChoiceLoader([
            self.jinja_env.loader,
            jinja2.PrefixLoader(
                {'lineprofiler': jinja2.PackageLoader(__name__, 'templates')})
        ])

        if functions_to_profile:
            self.is_active = True
    def __init__(self, jinja_env, context={}):
        DebugPanel.__init__(self, jinja_env, context=context)

        self.jinja_env.loader = jinja2.ChoiceLoader([
            self.jinja_env.loader,
            jinja2.PrefixLoader({
                'lineprofiler': jinja2.PackageLoader(__name__, 'templates')
            })
        ])

        if functions_to_profile:
            self.is_active = True
Example #7
0
 def __init__(self, jinja_env, context={}):
     DebugPanel.__init__(self, jinja_env, context=context)
     if current_app.config.get('DEBUG_TB_PROFILER_ENABLED'):
         self.is_active = True
Example #8
0
 def __init__(self, jinja_env, context={}):
     DebugPanel.__init__(self, jinja_env, context=context)
     if current_app.config.get('DEBUG_TB_PROFILER_ENABLED'):
         self.is_active = True
Example #9
0
 def __init__(self, *args, **kwargs):
     DebugPanel.__init__(self, *args, **kwargs)
     self.storage = []
     self.enable_instrumentation()
Example #10
0
 def __init__(self, jinja_env, context={}):
     DebugPanel.__init__(self, jinja_env, context=context)
     self.is_active = True
Example #11
0
 def __init__(self, jinja_env, context={}):
     DebugPanel.__init__(self, jinja_env, context=context)
     self.jinja_env.loader = jinja2.ChoiceLoader(
         [self.jinja_env.loader, template_loader])
     self.variables = {}
Example #12
0
 def __init__(self, jinja_env, context={}):
     DebugPanel.__init__(self, jinja_env, context=context)
     self.jinja_env.loader = jinja2.ChoiceLoader([
         self.jinja_env.loader, template_loader])
     self.variables = {}