Example for using the `PyDataMem_SetEventHook` to track allocations inside numpy.
`alloc_hook.pyx` implements a hook in Cython that calls back into a python
function. `track_allocations.py` uses it for a simple listing of allocations.
It can be built with the `setup.py` file in this folder.
Note that since Python 3.6 the builtin tracemalloc module can be used to
track allocations inside numpy.
Numpy places its CPU memory allocations into the `np.lib.tracemalloc_domain`
domain.
See https://docs.python.org/3/library/tracemalloc.html.
没有合适的资源?快使用搜索试试~ 我知道了~
numpy-1.16.6.zip
共1156个文件
py:433个
rst:263个
h:102个
需积分: 5 6 下载量 172 浏览量
2022-07-07
10:00:46
上传
评论
收藏 4.91MB ZIP 举报
温馨提示
python常用数据分析包
资源详情
资源评论
资源推荐
收起资源包目录
numpy-1.16.6.zip (1156个子文件)
make.bat 7KB
mtrand.c 2.13MB
f2c_d_lapack.c 1.13MB
f2c_s_lapack.c 1.11MB
f2c_z_lapack.c 862KB
f2c_c_lapack.c 852KB
f2c_blas.c 548KB
ufunc_object.c 188KB
dtype_transfer.c 142KB
multiarraymodule.c 132KB
ctors.c 120KB
datetime.c 115KB
nditer_constr.c 113KB
mapping.c 112KB
dragon4.c 110KB
descriptor.c 101KB
nditer_api.c 96KB
methods.c 86KB
ufunc_type_resolution.c 76KB
nditer_pywrap.c 72KB
item_selection.c 71KB
convert_datatype.c 70KB
iterators.c 58KB
arrayobject.c 57KB
compiled_base.c 53KB
fftpack.c 51KB
f2c_config.c 49KB
f2c_lapack.c 45KB
datetime_strings.c 44KB
datetime_busday.c 42KB
fortranobject.c 35KB
buffer.c 32KB
calculation.c 32KB
shape.c 31KB
conversion_utils.c 31KB
number.c 31KB
getset.c 29KB
common.c 27KB
mem_overlap.c 25KB
scalarapi.c 24KB
cblasfuncs.c 23KB
override.c 23KB
flagsobject.c 23KB
distributions.c 22KB
numpyos.c 22KB
reduction.c 20KB
convert.c 17KB
datetime_busdaycal.c 17KB
halffloat.c 17KB
randomkit.c 15KB
array_assign_array.c 15KB
temp_elide.c 13KB
f2c.c 12KB
lapack_litemodule.c 11KB
arrayfunction_override.c 11KB
umathmodule.c 11KB
array_assign_scalar.c 10KB
refcount.c 10KB
fftpack_litemodule.c 9KB
wrapmodule.c 9KB
apple_sgemv_fix.c 9KB
extobj.c 9KB
alloc.c 9KB
hashdescr.c 8KB
usertypes.c 8KB
strfuncs.c 6KB
initarray.c 5KB
array_assign.c 5KB
vdot.c 5KB
typeinfo.c 5KB
npy_longdouble.c 5KB
foomodule.c 5KB
ucsnarrow.c 4KB
floatint.c 4KB
ufunc_override.c 4KB
sequence.c 2KB
python_xerbla.c 1KB
python_xerbla.c 1KB
cpuid.c 1KB
dummymodule.c 865B
_signbit.c 438B
npy_math.c 272B
gfortran_vs2003_hack.c 77B
setup.cfg 48B
theme.conf 173B
.coveragerc 40B
spc-bootstrap.css 175KB
scipy-central.css 16KB
pygments.css 4KB
extend.css 2KB
spc-extend.css 2KB
scipy.css_t 5KB
SuperTensor.cxx 5KB
Matrix.cxx 5KB
Tensor.cxx 4KB
Vector.cxx 4KB
Array2.cxx 3KB
Farray.cxx 3KB
ArrayZ.cxx 2KB
Array1.cxx 2KB
共 1156 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
m0_38111284
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0