diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2017-04-03 12:42:37 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2017-04-28 17:09:24 +0200 |
commit | 03534ec90dba2bcdcd649be64be57939dde4c6f5 (patch) | |
tree | 62b83ff8615e3b604e548e1040f76cd888377f15 /numpy/lib | |
parent | d5657b9e29a8e00ad8e074bc32c15dec220d766f (diff) | |
download | numpy-03534ec90dba2bcdcd649be64be57939dde4c6f5.tar.gz |
ENH: add support for python3.6 memory tracing
Python 3.6 added a private API for tracing arbitrary memory allocations
so the tracemalloc module [0] can be used with numpy.
closes gh-4663
[0] https://docs.python.org/3/library/tracemalloc.html
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/__init__.py b/numpy/lib/__init__.py index 4cdb76b20..847a3e896 100644 --- a/numpy/lib/__init__.py +++ b/numpy/lib/__init__.py @@ -25,8 +25,9 @@ from .financial import * from .arrayterator import Arrayterator from .arraypad import * from ._version import * +from numpy.core.multiarray import tracemalloc_domain -__all__ = ['emath', 'math'] +__all__ = ['emath', 'math', 'tracemalloc_domain'] __all__ += type_check.__all__ __all__ += index_tricks.__all__ __all__ += function_base.__all__ |