Commits

Manuel Giffels committed 799f39c

Pass keyword args through ProfileAggregator's run method

Comments (0)

Files changed (1)

cherrypy/lib/profiler.py

         self.count = _count = _count + 1
         self.profiler = profile.Profile()
 
-    def run(self, func, *args):
+    def run(self, func, *args, **params):
         path = os.path.join(self.path, "cp_%04d.prof" % self.count)
-        result = self.profiler.runcall(func, *args)
+        result = self.profiler.runcall(func, *args, **params)
         self.profiler.dump_stats(path)
         return result