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
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
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.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
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
def __init__(self, *args, **kwargs): DebugPanel.__init__(self, *args, **kwargs) self.storage = [] self.enable_instrumentation()
def __init__(self, jinja_env, context={}): DebugPanel.__init__(self, jinja_env, context=context) 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, template_loader]) self.variables = {}
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 = {}