Skip to content

Commit 16f2314

Browse files
committed
fixup! Allow statprof to be run as a standalone executable, to profile a separate call
1 parent 164c4e3 commit 16f2314

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ Or with a contextmanager : ::
4141
with statprof.profile():
4242
my_questionable_function()
4343

44+
Or as a separate executable: ::
45+
46+
statprof my_questionable_script
47+
4448
The profiler can be invoked at more than one place inside your code and will
4549
report its findings for all of them at once at the end: ::
4650

0 commit comments

Comments
 (0)