Generative Profiling for Soft Real-Time Systems and its Applications to Resource Allocation