# File lib/patches/db/pg.rb, line 36 def prepare(*args,&blk) # we have no choice but to do this here, # if we do the check for profiling first, our cache may miss critical stuff @prepare_map ||= {} @prepare_map[args[0]] = args[1] # dont leak more than 10k ever @prepare_map = {} if @prepare_map.length > 1000 return prepare_without_profiling(*args,&blk) unless SqlPatches.should_measure? prepare_without_profiling(*args,&blk) end