Lines Matching refs:total_stats
62 malloc_thread_stats_t total_stats = {0}; in get_total_from_test_sizes() local
65 total_stats.total_mmapped_memory += sizes[i]; in get_total_from_test_sizes()
66 total_stats.mmapped_regions++; in get_total_from_test_sizes()
68 total_stats.total_allocated_memory += sizes[i]; in get_total_from_test_sizes()
70 return total_stats; in get_total_from_test_sizes()
91 static int validate_total_allocated(malloc_thread_stats_t *total_stats) in validate_total_allocated() argument
96 total_stats->total_allocated_memory, in validate_total_allocated()
101 total_stats->total_mmapped_memory, in validate_total_allocated()
106 total_stats->mmapped_regions, in validate_total_allocated()
112 static int validate_all_freed(malloc_thread_stats_t *total_stats) in validate_all_freed() argument
114 int result = expect_equal(total_stats->total_allocated_memory, 0, "allocated memory"); in validate_all_freed()
115 result &= expect_equal(total_stats->total_mmapped_memory, 0, "mmapped memory"); in validate_all_freed()
116 result &= expect_equal(total_stats->mmapped_regions, 0, "mmapped regions"); in validate_all_freed()