Skip to content

Commit b381d92

Browse files
authored
Merge pull request #270 from Cskorpion/disable-warning
Remove warning on memory profiling on PyPy
2 parents 0d40e7c + 5bc7586 commit b381d92

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

vmprof/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ def enable(fileno, period=DEFAULT_PERIOD, memory=False, lines=False, native=None
6464
raise ValueError("period must be a float, not %s" % type(period))
6565
if warn and pypy_version_info < (4, 1, 0):
6666
raise Exception("PyPy <4.1 have various kinds of bugs, pass warn=False if you know what you're doing")
67-
if warn and memory:
68-
print("Memory profiling is currently unsupported for PyPy. Running without memory statistics.")
6967
if warn and lines:
7068
print('Line profiling is currently unsupported for PyPy. Running without lines statistics.\n')
7169
native = _is_native_enabled(native)

0 commit comments

Comments
 (0)