-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow_alloc_mem_hex.c
More file actions
25 lines (23 loc) · 1.27 KB
/
show_alloc_mem_hex.c
File metadata and controls
25 lines (23 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* show_alloc_mem_hex.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ffloris <ffloris@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/03 13:39:16 by ffloris #+# #+# */
/* Updated: 2019/01/29 20:54:50 by ffloris ### ########.fr */
/* */
/* ************************************************************************** */
#include "malloc.h"
void show_alloc_mem_hex(void)
{
pthread_mutex_lock(&g_mutex);
ft_printf("-- Allocated tiny blocks --\n");
display_zones(g_zones.tinies, TINY_ZONE, true);
ft_printf("-- Allocated small blocks --\n");
display_zones(g_zones.smalls, SMALL_ZONE, true);
ft_printf("-- Allocated large blocks --\n");
display_zones(g_zones.larges, LARGE_ZONE, true);
pthread_mutex_unlock(&g_mutex);
}