diff options
author | Manuel Giffels <giffels@gmail.com> | 2013-04-18 15:27:52 +0200 |
---|---|---|
committer | Manuel Giffels <giffels@gmail.com> | 2013-04-18 15:27:52 +0200 |
commit | 18f9db3cc08202b1ffdcc4f15cecc500d7c8924c (patch) | |
tree | 3d7fa1333ae349614d171f6761daa6563f2f9a75 | |
parent | 73ad982baa83b0f12ffdb5939184e0c1cf897791 (diff) | |
download | cherrypy-18f9db3cc08202b1ffdcc4f15cecc500d7c8924c.tar.gz |
Pass keyword args through ProfileAggregator's run method
-rw-r--r-- | cherrypy/lib/profiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/lib/profiler.py b/cherrypy/lib/profiler.py index 6ac676b8..5ffe3b30 100644 --- a/cherrypy/lib/profiler.py +++ b/cherrypy/lib/profiler.py @@ -142,9 +142,9 @@ class ProfileAggregator(Profiler): 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 |