def run(self, func, *args, **params):
        """Dump profile data into self.path."""
        global _count
        c = _count = _count + 1
        path = os.path.join(self.path, "cp_%04d.prof" % c)
        prof = profile.Profile()
        result = prof.runcall(func, *args, **params)
        prof.dump_stats(path)
        return result
dataset/ETHPy150Open clips/pattern/pattern/server/cherrypy/cherrypy/lib/profiler.py/Profiler.run/original