Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: android_webview/tools/WebViewShell/src/org/chromium/webview_shell/StartupTimeActivity.java

Issue 1070563005: [Android WebView] Upstream WebViewShell to chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix copyright year Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.webview_shell;
6
7 import android.app.Activity;
8 import android.os.Bundle;
9 import android.os.SystemClock;
10 import android.webkit.WebView;
11
12 /**
13 * This activity is designed for startup time testing of the WebView.
14 */
15 public class StartupTimeActivity extends Activity {
16
17 @Override
18 public void onCreate(Bundle savedInstanceState) {
19 super.onCreate(savedInstanceState);
20 getWindow().setTitle(
21 getResources().getString(R.string.title_activity_startup_time));
22
23 long t1 = SystemClock.elapsedRealtime();
24 WebView webView = new WebView(this);
25 setContentView(webView);
26 long t2 = SystemClock.elapsedRealtime();
27 android.util.Log.i("WebViewShell", "WebViewStartupTimeMillis=" + (t2 - t 1));
28 }
29
30 }
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698