Skip to content

Commit f8c5b13

Browse files
committed
add documentation on start/stop stampling #166
1 parent d983034 commit f8c5b13

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/vmprof.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ Module level functions
121121
* ``vmprof.read_profile(filename)`` - read vmprof data from
122122
``filename`` and return ``Stats`` instance.
123123

124+
``start/stop_sampling()`` - Disables or starts the sampling of vmprof. This
125+
is useful to remove certain program parts from the profile. Be aware that
126+
those program parts still can be in the profile if that code is reached
127+
from another point in your program. In addition note that unix and windows
128+
implementation behave differntly. Unix will increment/decrement a counter,
129+
whereas windows has only two states for the counter (0 and 1).
130+
This may change in future.
131+
124132
``Stats`` object
125133
----------------
126134

0 commit comments

Comments
 (0)