FileDocCategorySizeDatePackage
StartupTimeActivity.javaAPI DocAndroid 5.1 API1441Thu Mar 12 22:22:56 GMT 2015com.android.webview.chromium.shell

StartupTimeActivity

public class StartupTimeActivity extends android.app.Activity
This activity is designed for startup time testing of the WebView.

Fields Summary
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        getWindow().setTitle(
                getResources().getString(R.string.title_activity_startup_time));

        long t1 = SystemClock.elapsedRealtime();
        WebView webView = new WebView(this);
        setContentView(webView);
        long t2 = SystemClock.elapsedRealtime();
        android.util.Log.i("WebViewShell", "WebViewStartupTimeMillis=" + (t2 - t1));