diff options
author | Andrei Popescu <andreip@google.com> | 2010-02-02 00:30:38 +0000 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2010-02-02 11:41:24 +0000 |
commit | 7a8b88b0e0f20544df5ee34b798398603261b733 (patch) | |
tree | 8a3ee08880239cf8cc0013f1bcaeb11167172ddd /src/com/android | |
parent | a1cc3fdce19a336c251297c61cd83ac6cf767cd1 (diff) | |
download | packages_apps_Browser-7a8b88b0e0f20544df5ee34b798398603261b733.zip packages_apps_Browser-7a8b88b0e0f20544df5ee34b798398603261b733.tar.gz packages_apps_Browser-7a8b88b0e0f20544df5ee34b798398603261b733.tar.bz2 |
Implement support for V8 counters
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/browser/BrowserActivity.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 6167b9a..8d471a2 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -1538,6 +1538,10 @@ public class BrowserActivity extends Activity getTopWindow().debugDump(); break; + case R.id.dump_counters_menu_id: + getTopWindow().dumpV8Counters(); + break; + case R.id.zoom_in_menu_id: getTopWindow().zoomIn(); break; @@ -1642,6 +1646,12 @@ public class BrowserActivity extends Activity final MenuItem nav = menu.findItem(R.id.dump_nav_menu_id); nav.setVisible(isNavDump); nav.setEnabled(isNavDump); + + boolean showDebugSettings = mSettings.showDebugSettings(); + final MenuItem counter = menu.findItem(R.id.dump_counters_menu_id); + counter.setVisible(showDebugSettings); + counter.setEnabled(showDebugSettings); + break; } mCurrentMenuState = mMenuState; |