add print_alloc_log func to print alloc log