LCOV - code coverage report
Current view: top level - Objects - memoryobject.c (source / functions) Hit Total Coverage
Test: CPython 3.12 LCOV report [commit acb105a7c1f] Lines: 1290 1381 93.4 %
Date: 2022-07-20 13:12:14 Functions: 106 107 99.1 %
Branches: 895 1048 85.4 %

Function Name Sort by function name Hit count Sort by hit count
PyBuffer_ToContiguous 575490
PyMemoryView_FromBuffer 1041534
PyMemoryView_FromMemory 180347
PyMemoryView_FromObject 714796
PyMemoryView_GetContiguous 34059
_IntTupleFromSsizet 246424
_PyManagedBuffer_FromObject 705328
_memory_release 2269847
adjust_fmt 157714
buffer_to_contiguous 198443
cast_to_1D 39842
cast_to_ND 11890
cmp_base 446504
cmp_rec 468086
copy_base 361846
copy_buffer 221063
copy_rec 458209
copy_shape 11889
copy_single 5863
equiv_format 226924
equiv_shape 389985
equiv_structure 226924
fix_error_int 663
fix_struct_error_int 5
get_native_fmtchar 398439
get_native_fmtstr 31614
init_flags 2426511
init_fortran_strides_from_shape 53492
init_len 198334
init_shape_strides 2360501
init_shared_values 2422963
init_slice 204200
init_strides_from_shape 179459
init_suboffsets 2360501
is_multiindex 109
is_multislice 69
last_dim_is_contiguous 225981
lookup_dimension 84355
mbuf_add_incomplete_view 62462
mbuf_add_view 2162068
mbuf_alloc 1927208
mbuf_clear 2
mbuf_copy_format 22620
mbuf_dealloc 1927164
mbuf_release 3853807
mbuf_traverse 36468
memory_alloc 2224524
memory_ass_sub 27149
memory_c_contiguous 3368
memory_clear 2
memory_contiguous 1119
memory_dealloc 2224475
memory_enter 45043
memory_exit 45016
memory_f_contiguous 1079
memory_format_get 88201
memory_from_contiguous_copy 22620
memory_getbuf 4547042
memory_hash 293
memory_item 63165
memory_item_multi 16
memory_itemsize_get 101628
memory_iter 72
memory_length 203781
memory_nbytes_get 93641
memory_ndim_get 81090
memory_obj_get 91944
memory_readonly_get 98424
memory_releasebuf 4532903
memory_repr 57
memory_richcompare 163313
memory_shape_get 73702
memory_strides_get 71747
memory_suboffsets_get 101032
memory_subscript 261495
memory_traverse 36514
memoryiter_dealloc 70
memoryiter_next 292
memoryiter_traverse 0
memoryview_cast_impl 40031
memoryview_hex_impl 11344
memoryview_impl 608988
memoryview_release_impl 45370
memoryview_tobytes_impl 221268
memoryview_tolist_impl 67354
memoryview_toreadonly_impl 27659
pack_single 21127
ptr_from_index 84307
ptr_from_tuple 37
pylong_as_ld 16088
pylong_as_lld 57
pylong_as_llu 57
pylong_as_lu 3086
pylong_as_zd 62
pylong_as_zu 75
struct_get_unpacker 30787
struct_unpack_cmp 178073
struct_unpack_single 356146
tolist_base 359072
tolist_rec 380912
type_error_int 690
unpack_cmp 5768676
unpack_single 3285423
unpacker_free 326631
unpacker_new 30787
value_error_int 33
zero_in_shape 26300

Generated by: LCOV version 1.14