<s> from appenlight_client . utils import import_module , deco_func_or_method <EOL> from appenlight_client . timing import time_trace <EOL> ignore_set = frozenset ( ) <EOL> def add_timing ( min_duration = <NUM_LIT> ) : <EOL> module = import_module ( '<STR_LIT>' ) <EOL> if not module : <EOL> return <EOL> from mako import template <EOL> def gather_template ( self , * args , ** kwargs ) : <EOL> try : <EOL> tmpl_name = str ( self . filename or self . module_id ) <EOL> except Exception : <EOL> tmpl_name = '<STR_LIT>' <EOL> return { '<STR_LIT:type>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : tmpl_name , <EOL> '<STR_LIT:count>' : True , <EOL> '<STR_LIT>' : ignore_set } <EOL> deco_func_or_method ( template , '<STR_LIT>' , time_trace , <EOL> gatherer = gather_template , min_duration = min_duration , is_template = True ) <EOL> deco_func_or_method ( template , '<STR_LIT>' , time_trace , <EOL> gatherer = gather_template , min_duration = min_duration , is_template = True ) <EOL> deco_func_or_method ( template , '<STR_LIT>' , time_trace , <EOL> gatherer = gather_template , min_duration = min_duration , is_template = True ) </s>
