ScarPhase: Sample-based Classification and Analysis for Runtime Phases