Profile-based Resource Allocation for Virtualized Network Functions