FileDocCategorySizeDatePackage
PerfChecker.javaAPI DocAndroid 1.5 API1475Wed May 06 22:41:56 BST 2009android.webkit

PerfChecker

public class PerfChecker extends Object

Fields Summary
private long
mTime
private static final long
mResponseThreshold
Constructors Summary
public PerfChecker()

    // 2s

      
        if (false) {
            mTime = SystemClock.uptimeMillis();
        }
    
Methods Summary
public voidresponseAlert(java.lang.String what)

param
what log string Logs given string if mResponseThreshold time passed between either instantiation or previous responseAlert call

        if (false) {
            long upTime = SystemClock.uptimeMillis();
            long time =  upTime - mTime;
            if (time > mResponseThreshold) {
                Log.w("webkit", what + " used " + time + " ms");
            }
            // Reset mTime, to permit reuse
            mTime = upTime;
        }