add two switch for animationperf  and  activityperf