Commit 80407eb1 authored by sadrul@chromium.org's avatar sadrul@chromium.org

jankometer: Remove.

The histograms don't seem to be used anymore (do not show up in UMA). The
hang-detector and about:profiler produce relevant useful data for detecting jank.

BUG=none

Review URL: https://codereview.chromium.org/435603011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288117 0039d316-1c4b-4281-b951-d872f2087c98
parent e5350d9e
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "chrome/browser/about_flags.h" #include "chrome/browser/about_flags.h"
#include "chrome/browser/browser_process.h" #include "chrome/browser/browser_process.h"
#include "chrome/browser/first_run/upgrade_util.h" #include "chrome/browser/first_run/upgrade_util.h"
#include "chrome/browser/jankometer.h"
#include "chrome/browser/lifetime/application_lifetime.h" #include "chrome/browser/lifetime/application_lifetime.h"
#include "chrome/browser/profiles/profile_manager.h" #include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/service_process/service_process_control.h" #include "chrome/browser/service_process/service_process_control.h"
...@@ -192,8 +191,6 @@ bool ShutdownPreThreadsStop() { ...@@ -192,8 +191,6 @@ bool ShutdownPreThreadsStop() {
} }
void ShutdownPostThreadsStop(bool restart_last_session) { void ShutdownPostThreadsStop(bool restart_last_session) {
// The jank'o'meter requires that the browser process has been destroyed
// before calling UninstallJankometer().
delete g_browser_process; delete g_browser_process;
g_browser_process = NULL; g_browser_process = NULL;
...@@ -206,9 +203,6 @@ void ShutdownPostThreadsStop(bool restart_last_session) { ...@@ -206,9 +203,6 @@ void ShutdownPostThreadsStop(bool restart_last_session) {
true); true);
#endif #endif
// Uninstall Jank-O-Meter here after the IO thread is no longer running.
UninstallJankometer();
#if defined(OS_WIN) #if defined(OS_WIN)
if (!browser_util::IsBrowserAlreadyRunning() && if (!browser_util::IsBrowserAlreadyRunning() &&
shutdown_type_ != browser_shutdown::END_SESSION) { shutdown_type_ != browser_shutdown::END_SESSION) {
......
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
#include "chrome/browser/google/google_search_counter.h" #include "chrome/browser/google/google_search_counter.h"
#include "chrome/browser/gpu/gl_string_manager.h" #include "chrome/browser/gpu/gl_string_manager.h"
#include "chrome/browser/gpu/three_d_api_observer.h" #include "chrome/browser/gpu/three_d_api_observer.h"
#include "chrome/browser/jankometer.h"
#include "chrome/browser/media/media_capture_devices_dispatcher.h" #include "chrome/browser/media/media_capture_devices_dispatcher.h"
#include "chrome/browser/metrics/field_trial_synchronizer.h" #include "chrome/browser/metrics/field_trial_synchronizer.h"
#include "chrome/browser/metrics/thread_watcher.h" #include "chrome/browser/metrics/thread_watcher.h"
...@@ -1376,9 +1375,6 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { ...@@ -1376,9 +1375,6 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
} }
} }
if (parsed_command_line().HasSwitch(switches::kEnableWatchdog))
InstallJankometer(parsed_command_line());
#if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) #if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD)
if (parsed_command_line().HasSwitch(switches::kDebugPrint)) { if (parsed_command_line().HasSwitch(switches::kDebugPrint)) {
base::FilePath path = base::FilePath path =
......
...@@ -1321,7 +1321,6 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches( ...@@ -1321,7 +1321,6 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
switches::kEnableNetBenchmarking, switches::kEnableNetBenchmarking,
switches::kEnableShowModalDialog, switches::kEnableShowModalDialog,
switches::kEnableStreamlinedHostedApps, switches::kEnableStreamlinedHostedApps,
switches::kEnableWatchdog,
switches::kEnableWebBasedSignin, switches::kEnableWebBasedSignin,
switches::kMessageLoopHistogrammer, switches::kMessageLoopHistogrammer,
switches::kOutOfProcessPdf, switches::kOutOfProcessPdf,
......
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_JANKOMETER_H_
#define CHROME_BROWSER_JANKOMETER_H_
namespace base {
class CommandLine;
}
// The Jank-O-Meter measures jankyness, which is user-perceivable lag in
// responsiveness of the application.
//
// It will log such "lag" events to the metrics log.
//
// This function will initialize the service, which will install itself in
// critical threads. It should be called on the UI thread.
void InstallJankometer(const base::CommandLine& parsed_command_line);
// Clean up Jank-O-Meter junk
void UninstallJankometer();
#endif // CHROME_BROWSER_JANKOMETER_H_
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/jankometer.h"
// TODO(port): Implement jankometer
// Mac: http://crbug.com/8077
// Linux aura: http://crbug.com/358751
void InstallJankometer(const base::CommandLine& parsed_command_line) {
}
void UninstallJankometer() {
}
This diff is collapsed.
...@@ -642,8 +642,6 @@ ...@@ -642,8 +642,6 @@
'browser/invalidation/profile_invalidation_provider_factory.h', 'browser/invalidation/profile_invalidation_provider_factory.h',
'browser/io_thread.cc', 'browser/io_thread.cc',
'browser/io_thread.h', 'browser/io_thread.h',
'browser/jankometer.h',
'browser/jankometer_win.cc',
'browser/jumplist_updater_win.cc', 'browser/jumplist_updater_win.cc',
'browser/jumplist_updater_win.h', 'browser/jumplist_updater_win.h',
'browser/jumplist_win.cc', 'browser/jumplist_win.cc',
...@@ -2283,7 +2281,6 @@ ...@@ -2283,7 +2281,6 @@
'browser/renderer_context_menu/spellchecker_submenu_observer_hunspell.cc', 'browser/renderer_context_menu/spellchecker_submenu_observer_hunspell.cc',
], ],
'chrome_browser_non_win_sources': [ 'chrome_browser_non_win_sources': [
'browser/jankometer_stub.cc',
'browser/profiles/profile_shortcut_manager_stub.cc', 'browser/profiles/profile_shortcut_manager_stub.cc',
], ],
# Desktop Linux and ChromeOS. # Desktop Linux and ChromeOS.
......
...@@ -632,14 +632,6 @@ const char kEnableTranslateNewUX[] = "enable-translate-new-ux"; ...@@ -632,14 +632,6 @@ const char kEnableTranslateNewUX[] = "enable-translate-new-ux";
const char kEnableUserAlternateProtocolPorts[] = const char kEnableUserAlternateProtocolPorts[] =
"enable-user-controlled-alternate-protocol-ports"; "enable-user-controlled-alternate-protocol-ports";
// Spawns threads to watch for excessive delays in specified message loops.
// User should set breakpoints on Alarm() to examine problematic thread.
//
// Usage: -enable-watchdog=[ui][io]
//
// Order of the listed sub-arguments does not matter.
const char kEnableWatchdog[] = "enable-watchdog";
// Uses WebSocket over SPDY. // Uses WebSocket over SPDY.
const char kEnableWebSocketOverSpdy[] = "enable-websocket-over-spdy"; const char kEnableWebSocketOverSpdy[] = "enable-websocket-over-spdy";
......
...@@ -184,7 +184,6 @@ extern const char kEnableSyncSyncedNotifications[]; ...@@ -184,7 +184,6 @@ extern const char kEnableSyncSyncedNotifications[];
extern const char kEnableThumbnailRetargeting[]; extern const char kEnableThumbnailRetargeting[];
extern const char kEnableTranslateNewUX[]; extern const char kEnableTranslateNewUX[];
extern const char kEnableUserAlternateProtocolPorts[]; extern const char kEnableUserAlternateProtocolPorts[];
extern const char kEnableWatchdog[];
extern const char kEnableWebSocketOverSpdy[]; extern const char kEnableWebSocketOverSpdy[];
extern const char kEnableWebsiteSettingsManager[]; extern const char kEnableWebsiteSettingsManager[];
extern const char kEnhancedBookmarksExperiment[]; extern const char kEnhancedBookmarksExperiment[];
......
...@@ -254,9 +254,6 @@ ChromeRenderProcessObserver::ChromeRenderProcessObserver( ...@@ -254,9 +254,6 @@ ChromeRenderProcessObserver::ChromeRenderProcessObserver(
pending_cache_max_dead_capacity_(0), pending_cache_max_dead_capacity_(0),
pending_cache_capacity_(kUnitializedCacheCapacity) { pending_cache_capacity_(kUnitializedCacheCapacity) {
const CommandLine& command_line = *CommandLine::ForCurrentProcess(); const CommandLine& command_line = *CommandLine::ForCurrentProcess();
if (command_line.HasSwitch(switches::kEnableWatchdog)) {
// TODO(JAR): Need to implement renderer IO msgloop watchdog.
}
#if defined(ENABLE_AUTOFILL_DIALOG) #if defined(ENABLE_AUTOFILL_DIALOG)
WebRuntimeFeatures::enableRequestAutocomplete(true); WebRuntimeFeatures::enableRequestAutocomplete(true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment