Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

        def hotshotit(func):
    def wrapper(*args, **kw):
        import hotshot
        global hotshotProfilers
        prof_name = func.func_name+".prof"
        profiler = hotshotProfilers.get(prof_name)
        if profiler is None:
            profiler = hotshot.Profile(prof_name)
            hotshotProfilers[prof_name] = profiler
        return profiler.runcall(func, *args, **kw)
    return wrapper
        


src/l/e/Letterpress-HEAD/code/markdown2/perf/perf.py   Letterpress(Download)
import optparse
 
from util import hotshotit
 
 

src/c/s/CS253-Blag-HEAD/lib/markdown2/perf/perf.py   CS253-Blag(Download)
import optparse
 
from util import hotshotit