Skip to content

Remove warning on memory profiling on PyPy #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions vmprof/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ def enable(fileno, period=DEFAULT_PERIOD, memory=False, lines=False, native=None
raise ValueError("period must be a float, not %s" % type(period))
if warn and pypy_version_info < (4, 1, 0):
raise Exception("PyPy <4.1 have various kinds of bugs, pass warn=False if you know what you're doing")
if warn and memory:
print("Memory profiling is currently unsupported for PyPy. Running without memory statistics.")
if warn and lines:
print('Line profiling is currently unsupported for PyPy. Running without lines statistics.\n')
native = _is_native_enabled(native)
Expand Down
Loading