mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-03-30 18:28:01 -04:00
Profiling changed
minor error in probe example
This commit is contained in:
parent
bf4378b86e
commit
e53dbd1db1
@ -42,11 +42,11 @@ Replace
|
|||||||
|
|
||||||
with
|
with
|
||||||
|
|
||||||
def foo(self, *args):
|
def foo(self, *args, **kwargs):
|
||||||
profile.runctx('self.real_foo(*args)', globals(), locals(),
|
profile.runctx('self.real_foo(*args, **kwargs)', globals(), locals(),
|
||||||
time.strftime('/home/user/profiling/foo-%Y%m%d-%H%M%S.pstats'))
|
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
|
# function content
|
||||||
|
|
||||||
### Run application
|
### Run application
|
||||||
|
Loading…
x
Reference in New Issue
Block a user