Lines Matching defs:size
26 static void* raw_malloc(size_t size);
102 size_t size;
113 /* Peak size in bytes of traced memory.
258 raw_malloc(size_t size)
260 return allocators.raw.malloc(allocators.raw.ctx, size);
519 assert(tracemalloc_traced_memory >= trace->size);
520 tracemalloc_traced_memory -= trace->size;
530 size_t size)
555 assert(tracemalloc_traced_memory >= trace->size);
556 tracemalloc_traced_memory -= trace->size;
558 trace->size = size;
566 trace->size = size;
576 assert(tracemalloc_traced_memory <= SIZE_MAX - size);
577 tracemalloc_traced_memory += size;
584 #define ADD_TRACE(ptr, size) \
585 tracemalloc_add_trace(DEFAULT_DOMAIN, (uintptr_t)(ptr), size)
711 tracemalloc_malloc_gil(void *ctx, size_t size)
713 return tracemalloc_alloc_gil(0, ctx, 1, size);
787 tracemalloc_raw_malloc(void *ctx, size_t size)
789 return tracemalloc_raw_alloc(0, ctx, 1, size);
959 size_t size;
980 size = TRACEBACK_SIZE(max_nframe);
982 tracemalloc_traceback = raw_malloc(size);
1159 obj = PyLong_FromSize_t(trace->size);
1331 Return a list of (size: int, traceback: tuple) tuples.
1587 size_t *size = (size_t*)user_data;
1588 *size += _Py_hashtable_size(traces);
1605 size_t size;
1607 size = _Py_hashtable_size(tracemalloc_tracebacks);
1608 size += _Py_hashtable_size(tracemalloc_filenames);
1611 size += _Py_hashtable_size(tracemalloc_traces);
1613 tracemalloc_get_tracemalloc_memory_cb, &size);
1616 return PyLong_FromSize_t(size);
1624 Get the current size and peak size of memory blocks traced by tracemalloc.
1633 Py_ssize_t size, peak_size;
1639 size = tracemalloc_traced_memory;
1643 return Py_BuildValue("nn", size, peak_size);
1649 Set the peak size of memory blocks traced by tracemalloc to the current size.
1693 0, /* non-negative size to be able to unload the module */
1735 size_t size)
1748 res = tracemalloc_add_trace(domain, ptr, size);
1808 /* else: cannot track the object, its memory block size is unknown */