FileDocCategorySizeDatePackage
TrafficStatsBenchmark.javaAPI DocAndroid 5.1 API1223Thu Mar 12 22:22:12 GMT 2015android.net

TrafficStatsBenchmark

public class TrafficStatsBenchmark extends com.google.caliper.SimpleBenchmark

Fields Summary
Constructors Summary
Methods Summary
public voidtimeGetMobileRxBytes(int reps)

        for (int i = 0; i < reps; i++) {
            TrafficStats.getMobileRxBytes();
        }
    
public voidtimeGetTotalRxBytes(int reps)

        for (int i = 0; i < reps; i++) {
            TrafficStats.getTotalRxBytes();
        }
    
public voidtimeGetUidRxBytes(int reps)

        for (int i = 0; i < reps; i++) {
            TrafficStats.getUidRxBytes(android.os.Process.myUid());
        }