Code level snapshot support