Lines Matching defs:total
27 and high water mark of total bytes requested, optionally set a limit on the
28 total memory that can be allocated, and when done check for memory leaks.
36 mem_limit(&strm, limit) sets a limit on the total bytes requested -- a
41 mem_used(&strm, "msg") prints to stderr "msg" and the total bytes used
65 size_t total, highwater; /* total allocations, and largest total */
79 if (zone == NULL || (zone->limit && zone->total + len > zone->limit))
103 zone->total += item->size;
104 if (zone->total > zone->highwater)
105 zone->highwater = zone->total;
144 zone->total -= next->size;
165 zone->total = 0;
175 /* set a limit on the total memory allocation, or 0 to remove the limit */
183 /* show the current total requested allocations in bytes */
188 fprintf(stderr, "%s: %lu allocated\n", prefix, zone->total);
220 if (count || zone->total)
222 prefix, zone->total, count);