From e53dbd1db152bb5a41dfc120cbee72b1272344a1 Mon Sep 17 00:00:00 2001 From: Wojciech Zygmunt Porczyk Date: Fri, 25 Apr 2014 07:56:05 +0000 Subject: [PATCH] Profiling changed minor error in probe example --- Profiling.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Profiling.md b/Profiling.md index f66b4478..aac8b671 100644 --- a/Profiling.md +++ b/Profiling.md @@ -42,11 +42,11 @@ Replace with - def foo(self, *args): - profile.runctx('self.real_foo(*args)', globals(), locals(), + def foo(self, *args, **kwargs): + profile.runctx('self.real_foo(*args, **kwargs)', globals(), locals(), time.strftime('/home/user/profiling/foo-%Y%m%d-%H%M%S.pstats')) - def real_foo(self, a, b, c): + def real_foo(self, bar): # function content ### Run application