Skip to content

Commit 4e6ef3d

Browse files
committed
Profiling decorators
1 parent 3d1516d commit 4e6ef3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ with PyCallGraph(output=graph):
14251425
from timeit import default_timer
14261426
from datetime import timedelta
14271427

1428-
def stopwatch(func):
1428+
def time_me(func):
14291429
def out(*args, **kwargs):
14301430
start = default_timer()
14311431
result = func(*args, **kwargs)
@@ -1440,7 +1440,7 @@ def stopwatch(func):
14401440
from cProfile import Profile
14411441
from pstats import Stats
14421442

1443-
def profiler(func):
1443+
def profile_me(func):
14441444
def out(*args, **kwargs):
14451445
profile = Profile()
14461446
result = profile.runcall(func, *args, **kwargs)
@@ -1456,7 +1456,7 @@ def profiler(func):
14561456

14571457
#### Prints arguments and output of a decorated function:
14581458
```python
1459-
def tracer(func):
1459+
def trace_me(func):
14601460
def out(*args, **kwargs):
14611461
result = func(*args, **kwargs)
14621462
arg_list = [repr(x) for x in args]

0 commit comments

Comments
 (0)