Adaptive slicing based on efficient profile analysis