Package 

Class PerformanceGuardian


  • 
    public class PerformanceGuardian
    
                        

    Avoid process activities which process time exceed threshold. Reboot the process if app version changed.

    • Method Detail

      • limitProcessTime

         static void limitProcessTime(String activityName, PerformanceGuardian.UseCase useCase, long startTime, long endTime)

        Calculate current activity process time. Return without action if current process time isnormal. Add current activity to banned activity set if exceed activity process time threshold.Update app version.