diff options
author | vadimt <vadimt@chromium.org> | 2014-10-29 15:10:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-29 22:11:04 +0000 |
commit | 09e7ebe02c71d923e4655a0ad5e151b97344f091 (patch) | |
tree | 116297765f286720af9aff161fafeca63486a1a6 | |
parent | 2ab60d98289be5804e38ea8fdebcf78740fca095 (diff) | |
download | chromium_src-09e7ebe02c71d923e4655a0ad5e151b97344f091.zip chromium_src-09e7ebe02c71d923e4655a0ad5e151b97344f091.tar.gz chromium_src-09e7ebe02c71d923e4655a0ad5e151b97344f091.tar.bz2 |
Switching profiler instrumentations from ScopedProfile to ScopedTracker. This will disable the instrumentations in all channels except Canary, and developer build. Instrumentations are only enabled in Browser process.
This will prevent Stable from sending increased amounts of UMA logs. Also, this will let us observe "true" (untouched by instrumentations) jankiness numbers every week in Dev channel.
BUG=401560
Review URL: https://codereview.chromium.org/686963002
Cr-Commit-Position: refs/heads/master@{#301950}
71 files changed, 320 insertions, 328 deletions
diff --git a/base/files/file_path_watcher_win.cc b/base/files/file_path_watcher_win.cc index ab2e3cf..73f9cfb 100644 --- a/base/files/file_path_watcher_win.cc +++ b/base/files/file_path_watcher_win.cc @@ -11,7 +11,7 @@ #include "base/logging.h" #include "base/memory/ref_counted.h" #include "base/message_loop/message_loop_proxy.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/time/time.h" #include "base/win/object_watcher.h" @@ -147,10 +147,9 @@ void FilePathWatcherImpl::WillDestroyCurrentMessageLoop() { } void FilePathWatcherImpl::OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( - FROM_HERE_WITH_EXPLICIT_FUNCTION( - "FilePathWatcherImpl_OnObjectSignaled")); + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( + FROM_HERE_WITH_EXPLICIT_FUNCTION("FilePathWatcherImpl_OnObjectSignaled")); DCHECK(object == handle_); // Make sure we stay alive through the body of this function. diff --git a/base/process/kill_win.cc b/base/process/kill_win.cc index f5fb859..b102a87 100644 --- a/base/process/kill_win.cc +++ b/base/process/kill_win.cc @@ -12,7 +12,7 @@ #include "base/logging.h" #include "base/message_loop/message_loop.h" #include "base/process/process_iterator.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/win/object_watcher.h" namespace base { @@ -72,10 +72,9 @@ void TimerExpiredTask::TimedOut() { } void TimerExpiredTask::OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( - FROM_HERE_WITH_EXPLICIT_FUNCTION( - "TimerExpiredTask_OnObjectSignaled")); + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( + FROM_HERE_WITH_EXPLICIT_FUNCTION("TimerExpiredTask_OnObjectSignaled")); CloseHandle(process_); process_ = NULL; diff --git a/base/synchronization/waitable_event_watcher_win.cc b/base/synchronization/waitable_event_watcher_win.cc index dc14e64..f5218f1 100644 --- a/base/synchronization/waitable_event_watcher_win.cc +++ b/base/synchronization/waitable_event_watcher_win.cc @@ -5,7 +5,7 @@ #include "base/synchronization/waitable_event_watcher.h" #include "base/compiler_specific.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/synchronization/waitable_event.h" #include "base/win/object_watcher.h" @@ -37,10 +37,9 @@ WaitableEvent* WaitableEventWatcher::GetWatchedEvent() { } void WaitableEventWatcher::OnObjectSignaled(HANDLE h) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( - FROM_HERE_WITH_EXPLICIT_FUNCTION( - "WaitableEventWatche_OnObjectSignaled")); + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( + FROM_HERE_WITH_EXPLICIT_FUNCTION("WaitableEventWatche_OnObjectSignaled")); WaitableEvent* event = event_; EventCallback callback = callback_; diff --git a/chrome/browser/chromeos/drive/local_file_reader.cc b/chrome/browser/chromeos/drive/local_file_reader.cc index c29820b..6a9fe94 100644 --- a/chrome/browser/chromeos/drive/local_file_reader.cc +++ b/chrome/browser/chromeos/drive/local_file_reader.cc @@ -6,7 +6,7 @@ #include "base/bind.h" #include "base/files/file_path.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/sequenced_task_runner.h" #include "net/base/completion_callback.h" #include "net/base/io_buffer.h" @@ -50,8 +50,8 @@ void LocalFileReader::Read(net::IOBuffer* in_buffer, void LocalFileReader::DidOpen(const net::CompletionCallback& callback, int64 offset, int error) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("423948 LocalFileReader::DidOpen")); if (error != net::OK) diff --git a/chrome/browser/extensions/chrome_url_request_util.cc b/chrome/browser/extensions/chrome_url_request_util.cc index b2455a3..7fdb70b 100644 --- a/chrome/browser/extensions/chrome_url_request_util.cc +++ b/chrome/browser/extensions/chrome_url_request_util.cc @@ -9,7 +9,7 @@ #include "base/files/file_path.h" #include "base/memory/weak_ptr.h" #include "base/path_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" @@ -63,8 +63,8 @@ class URLRequestResourceBundleJob : public net::URLRequestSimpleJob { std::string* charset, std::string* data, const net::CompletionCallback& callback) const override { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 URLRequestResourceBundleJob::GetData")); diff --git a/chrome/browser/intranet_redirect_detector.cc b/chrome/browser/intranet_redirect_detector.cc index 02c1573..5b2c278 100644 --- a/chrome/browser/intranet_redirect_detector.cc +++ b/chrome/browser/intranet_redirect_detector.cc @@ -8,7 +8,7 @@ #include "base/command_line.h" #include "base/prefs/pref_registry_simple.h" #include "base/prefs/pref_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/rand_util.h" #include "base/stl_util.h" #include "base/strings/utf_string_conversions.h" @@ -95,8 +95,8 @@ void IntranetRedirectDetector::FinishSleep() { void IntranetRedirectDetector::OnURLFetchComplete( const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 IntranetRedirectDetector::OnURLFetchComplete")); diff --git a/chrome/browser/password_manager/password_store_win.cc b/chrome/browser/password_manager/password_store_win.cc index 7ff08bf..08af256 100644 --- a/chrome/browser/password_manager/password_store_win.cc +++ b/chrome/browser/password_manager/password_store_win.cc @@ -9,7 +9,7 @@ #include "base/bind.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" #include "components/os_crypt/ie7_password_win.h" @@ -143,8 +143,8 @@ std::vector<PasswordForm*> PasswordStoreWin::DBHandler::GetIE7Results( void PasswordStoreWin::DBHandler::OnWebDataServiceRequestDone( PasswordWebDataService::Handle handle, const WDTypedResult* result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 PasswordStoreWin::DBHandler::OnWebDataServiceRequestDone")); diff --git a/chrome/browser/policy/cloud/user_policy_signin_service.cc b/chrome/browser/policy/cloud/user_policy_signin_service.cc index a4c3812..5d27709 100644 --- a/chrome/browser/policy/cloud/user_policy_signin_service.cc +++ b/chrome/browser/policy/cloud/user_policy_signin_service.cc @@ -7,7 +7,7 @@ #include "base/bind.h" #include "base/bind_helpers.h" #include "base/callback.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/profiles/profile.h" @@ -108,8 +108,8 @@ void UserPolicySigninService::CallPolicyRegistrationCallback( void UserPolicySigninService::OnRefreshTokenAvailable( const std::string& account_id) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 UserPolicySigninService::OnRefreshTokenAvailable")); diff --git a/chrome/browser/safe_browsing/client_side_detection_service.cc b/chrome/browser/safe_browsing/client_side_detection_service.cc index 485d20b..2457147 100644 --- a/chrome/browser/safe_browsing/client_side_detection_service.cc +++ b/chrome/browser/safe_browsing/client_side_detection_service.cc @@ -14,7 +14,7 @@ #include "base/metrics/histogram.h" #include "base/metrics/sparse_histogram.h" #include "base/prefs/pref_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/stl_util.h" #include "base/strings/string_util.h" #include "base/time/time.h" @@ -199,8 +199,8 @@ bool ClientSideDetectionService::IsPrivateIPAddress( void ClientSideDetectionService::OnURLFetchComplete( const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 ClientSideDetectionService::OnURLFetchComplete")); diff --git a/chrome/browser/safe_browsing/protocol_manager.cc b/chrome/browser/safe_browsing/protocol_manager.cc index 7a39760..ce9cae8 100644 --- a/chrome/browser/safe_browsing/protocol_manager.cc +++ b/chrome/browser/safe_browsing/protocol_manager.cc @@ -8,7 +8,7 @@ #include "base/logging.h" #include "base/memory/scoped_vector.h" #include "base/metrics/histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/rand_util.h" #include "base/stl_util.h" #include "base/strings/string_util.h" @@ -227,8 +227,8 @@ void SafeBrowsingProtocolManager::GetNextUpdate() { // required, the SafeBrowsing servers will tell us to get it again. void SafeBrowsingProtocolManager::OnURLFetchComplete( const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 SafeBrowsingProtocolManager::OnURLFetchComplete")); diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc index 7270d34..2effb5d 100644 --- a/chrome/browser/sync/profile_sync_service.cc +++ b/chrome/browser/sync/profile_sync_service.cc @@ -19,7 +19,7 @@ #include "base/memory/ref_counted.h" #include "base/message_loop/message_loop.h" #include "base/metrics/histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string16.h" #include "base/strings/stringprintf.h" #include "base/threading/thread_restrictions.h" @@ -755,8 +755,8 @@ void ProfileSyncService::OnGetTokenFailure( void ProfileSyncService::OnRefreshTokenAvailable( const std::string& account_id) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 ProfileSyncService::OnRefreshTokenAvailable")); diff --git a/chrome/common/service_process_util_win.cc b/chrome/common/service_process_util_win.cc index 9e358a7..6800353 100644 --- a/chrome/common/service_process_util_win.cc +++ b/chrome/common/service_process_util_win.cc @@ -10,7 +10,7 @@ #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string16.h" #include "base/strings/utf_string_conversions.h" #include "base/win/object_watcher.h" @@ -64,8 +64,8 @@ class ServiceProcessTerminateMonitor // base::ObjectWatcher::Delegate implementation. virtual void OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "ServiceProcessTerminateMonitor_OnObjectSignaled")); diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc index 4f9ea50..84d9169 100644 --- a/chrome/service/cloud_print/print_system_win.cc +++ b/chrome/service/cloud_print/print_system_win.cc @@ -8,7 +8,7 @@ #include "base/files/file_util.h" #include "base/json/json_writer.h" #include "base/memory/scoped_ptr.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/utf_string_conversions.h" #include "base/win/object_watcher.h" #include "base/win/scoped_bstr.h" @@ -89,8 +89,8 @@ class PrintSystemWatcherWin : public base::win::ObjectWatcher::Delegate { // base::ObjectWatcher::Delegate method virtual void OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "PrintSystemWatcherWin_OnObjectSignaled")); @@ -355,10 +355,10 @@ class JobSpoolerWin : public PrintSystem::JobSpooler { // base::win::ObjectWatcher::Delegate implementation. virtual void OnObjectSignaled(HANDLE object) override { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( - FROM_HERE_WITH_EXPLICIT_FUNCTION( - "Core_OnObjectSignaled")); + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is + // fixed. + tracked_objects::ScopedTracker tracking_profile( + FROM_HERE_WITH_EXPLICIT_FUNCTION("Core_OnObjectSignaled")); DCHECK(xps_print_job_); DCHECK(object == job_progress_event_.Get()); diff --git a/components/autofill/core/browser/autocomplete_history_manager.cc b/components/autofill/core/browser/autocomplete_history_manager.cc index 5b8bbb4..a115b8a 100644 --- a/components/autofill/core/browser/autocomplete_history_manager.cc +++ b/components/autofill/core/browser/autocomplete_history_manager.cc @@ -7,7 +7,7 @@ #include <vector> #include "base/prefs/pref_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string16.h" #include "base/strings/utf_string_conversions.h" #include "components/autofill/core/browser/autofill_client.h" @@ -54,8 +54,8 @@ AutocompleteHistoryManager::~AutocompleteHistoryManager() { void AutocompleteHistoryManager::OnWebDataServiceRequestDone( WebDataServiceBase::Handle h, const WDTypedResult* result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 AutocompleteHistoryManager::OnWebDataServiceRequestDone")); diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc index 6434dec..cbb1e80 100644 --- a/components/autofill/core/browser/personal_data_manager.cc +++ b/components/autofill/core/browser/personal_data_manager.cc @@ -12,7 +12,7 @@ #include "base/logging.h" #include "base/memory/ref_counted.h" #include "base/prefs/pref_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" @@ -189,8 +189,8 @@ PersonalDataManager::~PersonalDataManager() { void PersonalDataManager::OnWebDataServiceRequestDone( WebDataServiceBase::Handle h, const WDTypedResult* result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 PersonalDataManager::OnWebDataServiceRequestDone")); diff --git a/components/captive_portal/captive_portal_detector.cc b/components/captive_portal/captive_portal_detector.cc index bccd572..397393f 100644 --- a/components/captive_portal/captive_portal_detector.cc +++ b/components/captive_portal/captive_portal_detector.cc @@ -5,7 +5,7 @@ #include "components/captive_portal/captive_portal_detector.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_number_conversions.h" #include "net/base/load_flags.h" #include "net/http/http_response_headers.h" @@ -58,8 +58,8 @@ void CaptivePortalDetector::Cancel() { } void CaptivePortalDetector::OnURLFetchComplete(const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 CaptivePortalDetector::OnURLFetchComplete")); diff --git a/components/google/core/browser/google_url_tracker.cc b/components/google/core/browser/google_url_tracker.cc index cd616b60..1bb4cb3 100644 --- a/components/google/core/browser/google_url_tracker.cc +++ b/components/google/core/browser/google_url_tracker.cc @@ -7,7 +7,7 @@ #include "base/bind.h" #include "base/command_line.h" #include "base/prefs/pref_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_util.h" #include "components/google/core/browser/google_pref_names.h" #include "components/google/core/browser/google_switches.h" @@ -107,8 +107,8 @@ void GoogleURLTracker::CancelGoogleURL() { } void GoogleURLTracker::OnURLFetchComplete(const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 GoogleURLTracker::OnURLFetchComplete")); diff --git a/components/invalidation/gcm_network_channel.cc b/components/invalidation/gcm_network_channel.cc index 142cc8ff..78181d7 100644 --- a/components/invalidation/gcm_network_channel.cc +++ b/components/invalidation/gcm_network_channel.cc @@ -5,7 +5,7 @@ #include "base/base64.h" #include "base/i18n/time_formatting.h" #include "base/metrics/histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/sha1.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" @@ -224,8 +224,8 @@ void GCMNetworkChannel::OnGetTokenComplete( } void GCMNetworkChannel::OnURLFetchComplete(const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 GCMNetworkChannel::OnURLFetchComplete")); diff --git a/components/policy/core/common/cloud/device_management_service.cc b/components/policy/core/common/cloud/device_management_service.cc index 50aa706..6cb5af8 100644 --- a/components/policy/core/common/cloud/device_management_service.cc +++ b/components/policy/core/common/cloud/device_management_service.cc @@ -10,7 +10,7 @@ #include "base/compiler_specific.h" #include "base/message_loop/message_loop.h" #include "base/message_loop/message_loop_proxy.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "net/base/escape.h" #include "net/base/load_flags.h" #include "net/base/net_errors.h" @@ -481,8 +481,8 @@ std::string DeviceManagementService::GetServerUrl() { void DeviceManagementService::OnURLFetchComplete( const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 DeviceManagementService::OnURLFetchComplete")); diff --git a/components/policy/core/common/policy_loader_win.cc b/components/policy/core/common/policy_loader_win.cc index b2316dd..69320db 100644 --- a/components/policy/core/common/policy_loader_win.cc +++ b/components/policy/core/common/policy_loader_win.cc @@ -31,7 +31,7 @@ #include "base/memory/scoped_ptr.h" #include "base/metrics/histogram.h" #include "base/metrics/sparse_histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/scoped_native_library.h" #include "base/sequenced_task_runner.h" #include "base/stl_util.h" @@ -681,10 +681,9 @@ void PolicyLoaderWin::SetupWatches() { } void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( - FROM_HERE_WITH_EXPLICIT_FUNCTION( - "PolicyLoaderWin_OnObjectSignaled")); + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( + FROM_HERE_WITH_EXPLICIT_FUNCTION("PolicyLoaderWin_OnObjectSignaled")); DCHECK(object == user_policy_changed_event_.handle() || object == machine_policy_changed_event_.handle()) diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc index 8d4d72a..b9738e1 100644 --- a/components/search_engines/template_url_service.cc +++ b/components/search_engines/template_url_service.cc @@ -15,7 +15,7 @@ #include "base/memory/scoped_vector.h" #include "base/metrics/histogram.h" #include "base/prefs/pref_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/stl_util.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_split.h" @@ -826,8 +826,8 @@ scoped_ptr<TemplateURLService::Subscription> void TemplateURLService::OnWebDataServiceRequestDone( KeywordWebDataService::Handle h, const WDTypedResult* result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone")); @@ -836,8 +836,8 @@ void TemplateURLService::OnWebDataServiceRequestDone( load_handle_ = 0; if (!result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile1( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile1( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone 1")); @@ -852,8 +852,8 @@ void TemplateURLService::OnWebDataServiceRequestDone( TemplateURLVector template_urls; int new_resource_keyword_version = 0; { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile2( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile2( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone 2")); @@ -871,8 +871,8 @@ void TemplateURLService::OnWebDataServiceRequestDone( } if (client_) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile3( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile3( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone 3")); @@ -886,22 +886,22 @@ void TemplateURLService::OnWebDataServiceRequestDone( KeywordWebDataService::BatchModeScoper scoper(web_data_service_.get()); { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile4( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile4( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone 4")); PatchMissingSyncGUIDs(&template_urls); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile41( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile41( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone 41")); SetTemplateURLs(&template_urls); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile42( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile42( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone 42")); @@ -910,8 +910,8 @@ void TemplateURLService::OnWebDataServiceRequestDone( // This also calls NotifyObservers. ChangeToLoadedState(); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile43( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile43( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone 43")); @@ -920,8 +920,8 @@ void TemplateURLService::OnWebDataServiceRequestDone( UpdateKeywordSearchTermsForURL(visits_to_add_[i]); visits_to_add_.clear(); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile44( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile44( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone 44")); @@ -930,8 +930,8 @@ void TemplateURLService::OnWebDataServiceRequestDone( } if (default_search_provider_) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile5( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile5( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 TemplateURLService::OnWebDataServiceRequestDone 5")); diff --git a/components/signin/core/browser/account_tracker_service.cc b/components/signin/core/browser/account_tracker_service.cc index 0b13386..b44a702 100644 --- a/components/signin/core/browser/account_tracker_service.cc +++ b/components/signin/core/browser/account_tracker_service.cc @@ -8,7 +8,7 @@ #include "base/logging.h" #include "base/prefs/pref_service.h" #include "base/prefs/scoped_user_pref_update.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/utf_string_conversions.h" #include "components/signin/core/browser/signin_manager.h" #include "components/signin/core/common/signin_pref_names.h" @@ -259,8 +259,8 @@ AccountTrackerService::GetMigrationState(PrefService* pref_service) { void AccountTrackerService::OnRefreshTokenAvailable( const std::string& account_id) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 AccountTrackerService::OnRefreshTokenAvailable")); diff --git a/components/signin/core/browser/mutable_profile_oauth2_token_service.cc b/components/signin/core/browser/mutable_profile_oauth2_token_service.cc index 9f28f9a..7393418 100644 --- a/components/signin/core/browser/mutable_profile_oauth2_token_service.cc +++ b/components/signin/core/browser/mutable_profile_oauth2_token_service.cc @@ -4,7 +4,7 @@ #include "components/signin/core/browser/mutable_profile_oauth2_token_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "components/signin/core/browser/signin_client.h" #include "components/signin/core/browser/signin_metrics.h" #include "components/signin/core/browser/webdata/token_web_data.h" @@ -188,8 +188,8 @@ void MutableProfileOAuth2TokenService::LoadCredentials( void MutableProfileOAuth2TokenService::OnWebDataServiceRequestDone( WebDataServiceBase::Handle handle, const WDTypedResult* result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 MutableProfileOAuth2Token...::OnWebDataServiceRequestDone")); diff --git a/components/signin/core/browser/signin_account_id_helper.cc b/components/signin/core/browser/signin_account_id_helper.cc index a4c7ab8e..52dab78 100644 --- a/components/signin/core/browser/signin_account_id_helper.cc +++ b/components/signin/core/browser/signin_account_id_helper.cc @@ -5,7 +5,7 @@ #include "components/signin/core/browser/signin_account_id_helper.h" #include "base/prefs/pref_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "components/signin/core/browser/profile_oauth2_token_service.h" #include "components/signin/core/browser/signin_client.h" #include "components/signin/core/common/signin_pref_names.h" @@ -137,8 +137,8 @@ void SigninAccountIdHelper::GoogleSignedOut(const std::string& account_id, void SigninAccountIdHelper::OnRefreshTokenAvailable( const std::string& account_id) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 SigninAccountIdHelper::OnRefreshTokenAvailable")); diff --git a/components/translate/core/browser/translate_language_list.cc b/components/translate/core/browser/translate_language_list.cc index 5db1a1c..0edd96c 100644 --- a/components/translate/core/browser/translate_language_list.cc +++ b/components/translate/core/browser/translate_language_list.cc @@ -10,7 +10,7 @@ #include "base/json/json_reader.h" #include "base/lazy_instance.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" #include "base/values.h" @@ -229,8 +229,8 @@ void TranslateLanguageList::OnLanguageListFetchComplete( int id, bool success, const std::string& data) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 TranslateLanguageList::OnLanguageListFetchComplete")); @@ -256,8 +256,8 @@ void TranslateLanguageList::OnLanguageListFetchComplete( } void TranslateLanguageList::NotifyEvent(int line, const std::string& message) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 TranslateLanguageList::NotifyEvent")); @@ -267,8 +267,8 @@ void TranslateLanguageList::NotifyEvent(int line, const std::string& message) { void TranslateLanguageList::SetSupportedLanguages( const std::string& language_list) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile1( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile1( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 TranslateLanguageList::SetSupportedLanguages 1")); @@ -295,16 +295,16 @@ void TranslateLanguageList::SetSupportedLanguages( kLanguageListCallbackNameLength, language_list.size() - kLanguageListCallbackNameLength - 1); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile2( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile2( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 TranslateLanguageList::SetSupportedLanguages 2")); scoped_ptr<base::Value> json_value( base::JSONReader::Read(languages_json, base::JSON_ALLOW_TRAILING_COMMAS)); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile3( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile3( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 TranslateLanguageList::SetSupportedLanguages 3")); diff --git a/components/translate/core/browser/translate_script.cc b/components/translate/core/browser/translate_script.cc index ff4288c..caa60ee 100644 --- a/components/translate/core/browser/translate_script.cc +++ b/components/translate/core/browser/translate_script.cc @@ -8,7 +8,7 @@ #include "base/command_line.h" #include "base/logging.h" #include "base/message_loop/message_loop.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_piece.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" @@ -118,8 +118,8 @@ void TranslateScript::Request(const RequestCallback& callback) { void TranslateScript::OnScriptFetchComplete( int id, bool success, const std::string& data) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 TranslateScript::OnScriptFetchComplete")); diff --git a/components/translate/core/browser/translate_url_fetcher.cc b/components/translate/core/browser/translate_url_fetcher.cc index 3505ddb..4c551e0 100644 --- a/components/translate/core/browser/translate_url_fetcher.cc +++ b/components/translate/core/browser/translate_url_fetcher.cc @@ -4,7 +4,7 @@ #include "components/translate/core/browser/translate_url_fetcher.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "components/translate/core/browser/translate_download_manager.h" #include "net/base/load_flags.h" #include "net/http/http_status_code.h" @@ -68,8 +68,8 @@ bool TranslateURLFetcher::Request( } void TranslateURLFetcher::OnURLFetchComplete(const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 TranslateURLFetcher::OnURLFetchComplete")); diff --git a/content/browser/appcache/view_appcache_internals_job.cc b/content/browser/appcache/view_appcache_internals_job.cc index c904cb4..5e793bbb 100644 --- a/content/browser/appcache/view_appcache_internals_job.cc +++ b/content/browser/appcache/view_appcache_internals_job.cc @@ -13,7 +13,7 @@ #include "base/i18n/time_formatting.h" #include "base/logging.h" #include "base/memory/weak_ptr.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" @@ -358,8 +358,8 @@ class MainPageJob : public BaseInternalsJob { std::string* charset, std::string* out, const net::CompletionCallback& callback) const override { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("422489 MainPageJob::GetData")); mime_type->assign("text/html"); @@ -483,8 +483,8 @@ class ViewAppCacheJob : public BaseInternalsJob, std::string* charset, std::string* out, const net::CompletionCallback& callback) const override { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("422489 ViewAppCacheJob::GetData")); mime_type->assign("text/html"); @@ -562,8 +562,8 @@ class ViewEntryJob : public BaseInternalsJob, std::string* charset, std::string* out, const net::CompletionCallback& callback) const override { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("422489 ViewEntryJob::GetData")); mime_type->assign("text/html"); diff --git a/content/browser/gpu/shader_disk_cache.cc b/content/browser/gpu/shader_disk_cache.cc index ec0cd20..a50e3c3 100644 --- a/content/browser/gpu/shader_disk_cache.cc +++ b/content/browser/gpu/shader_disk_cache.cc @@ -4,7 +4,7 @@ #include "content/browser/gpu/shader_disk_cache.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/threading/thread_checker.h" #include "content/browser/gpu/gpu_process_host.h" #include "content/public/browser/browser_thread.h" @@ -260,8 +260,8 @@ void ShaderDiskReadHelper::LoadCache() { } void ShaderDiskReadHelper::OnOpComplete(int rv) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422516 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422516 ShaderDiskReadHelper::OnOpComplete")); diff --git a/content/browser/histogram_internals_request_job.cc b/content/browser/histogram_internals_request_job.cc index 0c4cf1d..e29dfca 100644 --- a/content/browser/histogram_internals_request_job.cc +++ b/content/browser/histogram_internals_request_job.cc @@ -6,7 +6,7 @@ #include "base/metrics/histogram.h" #include "base/metrics/statistics_recorder.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "content/browser/histogram_synchronizer.h" #include "net/base/escape.h" #include "net/base/net_errors.h" @@ -60,8 +60,8 @@ int HistogramInternalsRequestJob::GetData( std::string* charset, std::string* data, const net::CompletionCallback& callback) const { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 HistogramInternalsRequestJob::GetData")); diff --git a/content/browser/tcmalloc_internals_request_job.cc b/content/browser/tcmalloc_internals_request_job.cc index 74af822..750eae3 100644 --- a/content/browser/tcmalloc_internals_request_job.cc +++ b/content/browser/tcmalloc_internals_request_job.cc @@ -5,7 +5,7 @@ #include "content/browser/tcmalloc_internals_request_job.h" #include "base/allocator/allocator_extension.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "content/common/child_process_messages.h" #include "content/public/browser/browser_child_process_host_iterator.h" #include "content/public/browser/browser_thread.h" @@ -109,8 +109,8 @@ int TcmallocInternalsRequestJob::GetData( std::string* charset, std::string* data, const net::CompletionCallback& callback) const { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 TcmallocInternalsRequestJob::GetData")); diff --git a/device/hid/hid_connection_win.cc b/device/hid/hid_connection_win.cc index 1783092..1e989a3 100644 --- a/device/hid/hid_connection_win.cc +++ b/device/hid/hid_connection_win.cc @@ -10,7 +10,7 @@ #include "base/files/file.h" #include "base/message_loop/message_loop.h" #include "base/numerics/safe_conversions.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/win/object_watcher.h" #define INITGUID @@ -89,10 +89,9 @@ void PendingHidTransfer::TakeResultFromWindowsAPI(BOOL result) { } void PendingHidTransfer::OnObjectSignaled(HANDLE event_handle) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( - FROM_HERE_WITH_EXPLICIT_FUNCTION( - "PendingHidTransfer_OnObjectSignaled")); + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( + FROM_HERE_WITH_EXPLICIT_FUNCTION("PendingHidTransfer_OnObjectSignaled")); callback_.Run(this, true); Release(); diff --git a/extensions/browser/extension_protocols.cc b/extensions/browser/extension_protocols.cc index 151fa8f..3361495 100644 --- a/extensions/browser/extension_protocols.cc +++ b/extensions/browser/extension_protocols.cc @@ -20,7 +20,7 @@ #include "base/metrics/histogram.h" #include "base/metrics/sparse_histogram.h" #include "base/path_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/sha1.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" @@ -88,8 +88,8 @@ class GeneratedBackgroundPageJob : public net::URLRequestSimpleJob { std::string* charset, std::string* data, const net::CompletionCallback& callback) const override { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 GeneratedBackgroundPageJob::GetData")); diff --git a/extensions/browser/updater/extension_downloader.cc b/extensions/browser/updater/extension_downloader.cc index 8021944..a472758 100644 --- a/extensions/browser/updater/extension_downloader.cc +++ b/extensions/browser/updater/extension_downloader.cc @@ -13,7 +13,7 @@ #include "base/logging.h" #include "base/metrics/histogram.h" #include "base/metrics/sparse_histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/stl_util.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" @@ -492,8 +492,8 @@ void ExtensionDownloader::CreateManifestFetcher() { } void ExtensionDownloader::OnURLFetchComplete(const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 ExtensionDownloader::OnURLFetchComplete")); diff --git a/google_apis/gaia/account_tracker.cc b/google_apis/gaia/account_tracker.cc index b134fc0..1c29ee6 100644 --- a/google_apis/gaia/account_tracker.cc +++ b/google_apis/gaia/account_tracker.cc @@ -6,7 +6,7 @@ #include "base/debug/trace_event.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/stl_util.h" #include "net/url_request/url_request_context_getter.h" @@ -85,8 +85,8 @@ AccountIds AccountTracker::FindAccountIdsByGaiaId(const std::string& gaia_id) { } void AccountTracker::OnRefreshTokenAvailable(const std::string& account_id) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 AccountTracker::OnRefreshTokenAvailable")); @@ -164,8 +164,8 @@ void AccountTracker::NotifyAccountRemoved(const AccountState& account) { } void AccountTracker::NotifySignInChanged(const AccountState& account) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 AccountTracker::NotifySignInChanged")); @@ -177,7 +177,7 @@ void AccountTracker::NotifySignInChanged(const AccountState& account) { void AccountTracker::UpdateSignInState(const std::string account_key, bool is_signed_in) { - tracked_objects::ScopedProfile tracking_profile( + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 AccountTracker::UpdateSignInState")); @@ -195,8 +195,8 @@ void AccountTracker::UpdateSignInState(const std::string account_key, } void AccountTracker::StartTrackingAccount(const std::string account_key) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 AccountTracker::StartTrackingAccount")); @@ -231,8 +231,8 @@ void AccountTracker::StopTrackingAllAccounts() { } void AccountTracker::StartFetchingUserInfo(const std::string account_key) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 AccountTracker::StartFetchingUserInfo")); diff --git a/google_apis/gaia/gaia_auth_fetcher.cc b/google_apis/gaia/gaia_auth_fetcher.cc index 83dae59e..0d384a0 100644 --- a/google_apis/gaia/gaia_auth_fetcher.cc +++ b/google_apis/gaia/gaia_auth_fetcher.cc @@ -10,7 +10,7 @@ #include "base/json/json_reader.h" #include "base/json/json_writer.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_split.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" @@ -935,8 +935,8 @@ void GaiaAuthFetcher::OnGetCheckConnectionInfoFetched( } void GaiaAuthFetcher::OnURLFetchComplete(const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 GaiaAuthFetcher::OnURLFetchComplete")); diff --git a/google_apis/gaia/gaia_oauth_client.cc b/google_apis/gaia/gaia_oauth_client.cc index 0660507..25f03ee 100644 --- a/google_apis/gaia/gaia_oauth_client.cc +++ b/google_apis/gaia/gaia_oauth_client.cc @@ -7,7 +7,7 @@ #include "base/json/json_reader.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_util.h" #include "base/values.h" #include "google_apis/gaia/gaia_urls.h" @@ -227,8 +227,8 @@ void GaiaOAuthClient::Core::MakeGaiaRequest( // URLFetcher::Delegate implementation. void GaiaOAuthClient::Core::OnURLFetchComplete( const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 GaiaOAuthClient::Core::OnURLFetchComplete")); diff --git a/google_apis/gaia/identity_provider.cc b/google_apis/gaia/identity_provider.cc index 73abe2a..86edfb8 100644 --- a/google_apis/gaia/identity_provider.cc +++ b/google_apis/gaia/identity_provider.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "google_apis/gaia/identity_provider.h" IdentityProvider::Observer::~Observer() {} @@ -40,8 +40,8 @@ void IdentityProvider::RemoveObserver(Observer* observer) { } void IdentityProvider::OnRefreshTokenAvailable(const std::string& account_id) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 IdentityProvider::OnRefreshTokenAvailable")); diff --git a/google_apis/gaia/oauth2_access_token_fetcher_impl.cc b/google_apis/gaia/oauth2_access_token_fetcher_impl.cc index 7ef13ab..0a4f09d 100644 --- a/google_apis/gaia/oauth2_access_token_fetcher_impl.cc +++ b/google_apis/gaia/oauth2_access_token_fetcher_impl.cc @@ -11,7 +11,7 @@ #include "base/json/json_reader.h" #include "base/metrics/histogram.h" #include "base/metrics/sparse_histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" #include "base/time/time.h" @@ -259,8 +259,8 @@ void OAuth2AccessTokenFetcherImpl::OnGetTokenFailure( void OAuth2AccessTokenFetcherImpl::OnURLFetchComplete( const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 OAuth2AccessTokenFetcherImpl::OnURLFetchComplete")); diff --git a/google_apis/gaia/oauth2_api_call_flow.cc b/google_apis/gaia/oauth2_api_call_flow.cc index 9038328..ade25d7 100644 --- a/google_apis/gaia/oauth2_api_call_flow.cc +++ b/google_apis/gaia/oauth2_api_call_flow.cc @@ -8,7 +8,7 @@ #include <vector> #include "base/basictypes.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/stringprintf.h" #include "google_apis/gaia/gaia_urls.h" #include "net/base/escape.h" @@ -67,8 +67,8 @@ std::string OAuth2ApiCallFlow::CreateApiCallBodyContentType() { } void OAuth2ApiCallFlow::OnURLFetchComplete(const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 OAuth2ApiCallFlow::OnURLFetchComplete")); diff --git a/google_apis/gaia/oauth2_token_service.cc b/google_apis/gaia/oauth2_token_service.cc index 0945723..dac940b 100644 --- a/google_apis/gaia/oauth2_token_service.cc +++ b/google_apis/gaia/oauth2_token_service.cc @@ -9,7 +9,7 @@ #include "base/bind.h" #include "base/memory/weak_ptr.h" #include "base/message_loop/message_loop.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/rand_util.h" #include "base/stl_util.h" #include "base/time/time.h" @@ -757,8 +757,8 @@ void OAuth2TokenService::CancelFetchers( void OAuth2TokenService::FireRefreshTokenAvailable( const std::string& account_id) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 OAuth2TokenService::FireRefreshTokenAvailable")); @@ -773,8 +773,8 @@ void OAuth2TokenService::FireRefreshTokenRevoked( } void OAuth2TokenService::FireRefreshTokensLoaded() { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422460 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422460 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422460 OAuth2TokenService::FireRefreshTokensLoaded")); diff --git a/google_apis/gcm/base/socket_stream.cc b/google_apis/gcm/base/socket_stream.cc index 52224e3..ffea696 100644 --- a/google_apis/gcm/base/socket_stream.cc +++ b/google_apis/gcm/base/socket_stream.cc @@ -6,7 +6,7 @@ #include "base/bind.h" #include "base/callback.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "net/base/io_buffer.h" #include "net/socket/stream_socket.h" @@ -163,8 +163,8 @@ SocketInputStream::State SocketInputStream::GetState() const { void SocketInputStream::RefreshCompletionCallback( const base::Closure& callback, int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "418183 DoReadCallback => SocketInputStream::RefreshCompletionC...")); diff --git a/net/base/file_stream_context.cc b/net/base/file_stream_context.cc index b242eba..8909b2c 100644 --- a/net/base/file_stream_context.cc +++ b/net/base/file_stream_context.cc @@ -7,7 +7,7 @@ #include "base/files/file_path.h" #include "base/location.h" #include "base/message_loop/message_loop_proxy.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/task_runner.h" #include "base/task_runner_util.h" #include "base/threading/thread_restrictions.h" @@ -150,8 +150,8 @@ void FileStream::Context::Flush(const CompletionCallback& callback) { FileStream::Context::OpenResult FileStream::Context::OpenFileImpl( const base::FilePath& path, int open_flags) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "423948 FileStream::Context::OpenFileImpl")); @@ -202,8 +202,8 @@ void FileStream::Context::OnOpenCompleted(const CompletionCallback& callback, OpenResult open_result) { file_ = open_result.file.Pass(); if (file_.IsValid() && !orphaned_) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "423948 FileStream::Context::OnOpenCompleted")); diff --git a/net/base/network_change_notifier_win.cc b/net/base/network_change_notifier_win.cc index 2255681..1e6c51c 100644 --- a/net/base/network_change_notifier_win.cc +++ b/net/base/network_change_notifier_win.cc @@ -10,7 +10,7 @@ #include "base/bind.h" #include "base/logging.h" #include "base/metrics/histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/threading/thread.h" #include "base/time/time.h" #include "net/base/winsock_init.h" @@ -219,8 +219,8 @@ void NetworkChangeNotifierWin::SetCurrentConnectionType( } void NetworkChangeNotifierWin::OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "NetworkChangeNotifierWin_OnObjectSignaled")); diff --git a/net/base/upload_file_element_reader.cc b/net/base/upload_file_element_reader.cc index 857bef2..4682466 100644 --- a/net/base/upload_file_element_reader.cc +++ b/net/base/upload_file_element_reader.cc @@ -7,7 +7,7 @@ #include "base/bind.h" #include "base/files/file_util.h" #include "base/location.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/task_runner_util.h" #include "net/base/file_stream.h" #include "net/base/io_buffer.h" @@ -104,8 +104,8 @@ void UploadFileElementReader::Reset() { void UploadFileElementReader::OnOpenCompleted( const CompletionCallback& callback, int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "423948 UploadFileElementReader::OnOpenCompleted")); diff --git a/net/disk_cache/blockfile/in_flight_backend_io.cc b/net/disk_cache/blockfile/in_flight_backend_io.cc index 9bb011e..2cb3ff0 100644 --- a/net/disk_cache/blockfile/in_flight_backend_io.cc +++ b/net/disk_cache/blockfile/in_flight_backend_io.cc @@ -8,7 +8,7 @@ #include "base/bind_helpers.h" #include "base/compiler_specific.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/single_thread_task_runner.h" #include "net/base/net_errors.h" #include "net/disk_cache/blockfile/backend_impl.h" @@ -66,9 +66,9 @@ void BackendIO::OnDone(bool cancel) { if (result() == net::OK) { static_cast<EntryImpl*>(*entry_ptr_)->OnEntryCreated(backend_); if (cancel) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422516 is + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is // fixed. - tracked_objects::ScopedProfile tracking_profile( + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("422516 BackendIO::OnDone")); (*entry_ptr_)->Close(); @@ -504,8 +504,8 @@ void InFlightBackendIO::OnOperationComplete(BackgroundIO* operation, op->OnDone(cancel); if (!op->callback().is_null() && (!cancel || op->IsEntryOperation())) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422516 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422516 InFlightBackendIO::OnOperationComplete")); diff --git a/net/disk_cache/blockfile/in_flight_io.cc b/net/disk_cache/blockfile/in_flight_io.cc index 176cf87..cbfcd17 100644 --- a/net/disk_cache/blockfile/in_flight_io.cc +++ b/net/disk_cache/blockfile/in_flight_io.cc @@ -7,7 +7,7 @@ #include "base/bind.h" #include "base/location.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/single_thread_task_runner.h" #include "base/task_runner.h" #include "base/thread_task_runner_handle.h" @@ -88,8 +88,8 @@ void InFlightIO::OnIOComplete(BackgroundIO* operation) { // Runs on the primary thread. void InFlightIO::InvokeCallback(BackgroundIO* operation, bool cancel_task) { { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422516 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("422516 InFlightIO::InvokeCallback")); // http://crbug.com/74623 diff --git a/net/disk_cache/cache_creator.cc b/net/disk_cache/cache_creator.cc index becb31c..93c06b3 100644 --- a/net/disk_cache/cache_creator.cc +++ b/net/disk_cache/cache_creator.cc @@ -4,7 +4,7 @@ #include "base/files/file_path.h" #include "base/metrics/field_trial.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/single_thread_task_runner.h" #include "base/strings/stringprintf.h" #include "net/base/cache_type.h" @@ -140,8 +140,8 @@ void CacheCreator::DoCallback(int result) { // If the initialization of the cache fails, and |force| is true, we will // discard the whole cache and create a new one. void CacheCreator::OnIOComplete(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422516 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("422516 CacheCreator::OnIOComplete")); if (result == net::OK || !force_ || retry_) diff --git a/net/dns/dns_config_service_win.cc b/net/dns/dns_config_service_win.cc index ddb8a4c..b0da34e 100644 --- a/net/dns/dns_config_service_win.cc +++ b/net/dns/dns_config_service_win.cc @@ -15,7 +15,7 @@ #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/metrics/histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_split.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" @@ -310,10 +310,9 @@ class RegistryWatcher : public base::NonThreadSafe { } void OnObjectSignaled() { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( - FROM_HERE_WITH_EXPLICIT_FUNCTION( - "RegistryWatcher_OnObjectSignaled")); + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( + FROM_HERE_WITH_EXPLICIT_FUNCTION("RegistryWatcher_OnObjectSignaled")); DCHECK(CalledOnValidThread()); DCHECK(!callback_.is_null()); diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc index d8008e1..a167e32 100644 --- a/net/http/http_cache.cc +++ b/net/http/http_cache.cc @@ -23,7 +23,7 @@ #include "base/metrics/field_trial.h" #include "base/metrics/histogram.h" #include "base/pickle.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/stl_util.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" @@ -1355,8 +1355,8 @@ void HttpCache::OnIOComplete(int result, PendingOp* pending_op) { void HttpCache::OnPendingOpComplete(const base::WeakPtr<HttpCache>& cache, PendingOp* pending_op, int rv) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422516 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422516 HttpCache::OnPendingOpComplete")); diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc index c39a38a..4a0d82d 100644 --- a/net/http/http_cache_transaction.cc +++ b/net/http/http_cache_transaction.cc @@ -21,7 +21,7 @@ #include "base/metrics/field_trial.h" #include "base/metrics/histogram.h" #include "base/metrics/sparse_histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/rand_util.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_piece.h" @@ -2948,8 +2948,8 @@ void HttpCache::Transaction::RecordHistograms() { } void HttpCache::Transaction::OnIOComplete(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422516 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("422516 Transaction::OnIOComplete")); DoLoop(result); diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc index a7e248b..5f7fcab4 100644 --- a/net/http/http_network_transaction.cc +++ b/net/http/http_network_transaction.cc @@ -15,7 +15,7 @@ #include "base/metrics/field_trial.h" #include "base/metrics/histogram.h" #include "base/metrics/stats_counters.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/stl_util.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" @@ -598,15 +598,15 @@ void HttpNetworkTransaction::DoCallback(int rv) { } void HttpNetworkTransaction::OnIOComplete(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424359 is fixed. - tracked_objects::ScopedProfile tracking_profile1( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424359 is fixed. + tracked_objects::ScopedTracker tracking_profile1( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424359 HttpNetworkTransaction::OnIOComplete 1")); int rv = DoLoop(result); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424359 is fixed. - tracked_objects::ScopedProfile tracking_profile2( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424359 is fixed. + tracked_objects::ScopedTracker tracking_profile2( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424359 HttpNetworkTransaction::OnIOComplete 2")); diff --git a/net/http/http_stream_parser.cc b/net/http/http_stream_parser.cc index 8cd876f..b998986 100644 --- a/net/http/http_stream_parser.cc +++ b/net/http/http_stream_parser.cc @@ -7,7 +7,7 @@ #include "base/bind.h" #include "base/compiler_specific.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_util.h" #include "base/values.h" #include "net/base/io_buffer.h" @@ -358,8 +358,8 @@ int HttpStreamParser::ReadResponseBody(IOBuffer* buf, int buf_len, } void HttpStreamParser::OnIOComplete(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "418183 DidCompleteReadWrite => HttpStreamParser::OnIOComplete")); @@ -368,8 +368,8 @@ void HttpStreamParser::OnIOComplete(int result) { // The client callback can do anything, including destroying this class, // so any pending callback must be issued after everything else is done. if (result != ERR_IO_PENDING && !callback_.is_null()) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424359 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424359 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424359 HttpStreamParser::OnIOComplete callback")); @@ -380,8 +380,8 @@ void HttpStreamParser::OnIOComplete(int result) { } int HttpStreamParser::DoLoop(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424359 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424359 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("424359 HttpStreamParser::DoLoop")); do { diff --git a/net/http/partial_data.cc b/net/http/partial_data.cc index a453ba4..247d76b 100644 --- a/net/http/partial_data.cc +++ b/net/http/partial_data.cc @@ -8,7 +8,7 @@ #include "base/bind_helpers.h" #include "base/format_macros.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" @@ -90,8 +90,8 @@ int PartialData::Core::GetAvailableRange(disk_cache::Entry* entry, int64 offset, } void PartialData::Core::OnIOComplete(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422516 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422516 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422516 PartialData::Core::OnIOComplete")); diff --git a/net/socket/ssl_client_socket_nss.cc b/net/socket/ssl_client_socket_nss.cc index d336350..a7821b2 100644 --- a/net/socket/ssl_client_socket_nss.cc +++ b/net/socket/ssl_client_socket_nss.cc @@ -71,7 +71,7 @@ #include "base/logging.h" #include "base/memory/singleton.h" #include "base/metrics/histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/single_thread_task_runner.h" #include "base/stl_util.h" #include "base/strings/string_number_conversions.h" @@ -1689,8 +1689,8 @@ int SSLClientSocketNSS::Core::HandleNSSError(PRErrorCode nss_error) { } int SSLClientSocketNSS::Core::DoHandshakeLoop(int last_io_result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424386 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424386 SSLClientSocketNSS::Core::DoHandshakeLoop")); @@ -1730,8 +1730,8 @@ int SSLClientSocketNSS::Core::DoHandshakeLoop(int last_io_result) { } int SSLClientSocketNSS::Core::DoReadLoop(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424386 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424386 SSLClientSocketNSS::Core::DoReadLoop")); @@ -1794,8 +1794,8 @@ int SSLClientSocketNSS::Core::DoWriteLoop(int result) { } int SSLClientSocketNSS::Core::DoHandshake() { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424386 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424386 SSLClientSocketNSS::Core::DoHandshake")); @@ -1850,8 +1850,8 @@ int SSLClientSocketNSS::Core::DoHandshake() { } int SSLClientSocketNSS::Core::DoGetDBCertComplete(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424386 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424386 SSLClientSocketNSS::Core::DoGetDBCertComplete")); @@ -2039,8 +2039,8 @@ int SSLClientSocketNSS::Core::DoPayloadWrite() { // transport socket. Return true if some I/O performed, false // otherwise (error or ERR_IO_PENDING). bool SSLClientSocketNSS::Core::DoTransportIO() { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424386 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424386 SSLClientSocketNSS::Core::DoTransportIO")); @@ -2220,8 +2220,8 @@ void SSLClientSocketNSS::Core::OnSendComplete(int result) { // callback. For Read() and Write(), that's what we want. But for Connect(), // the caller expects OK (i.e. 0) for success. void SSLClientSocketNSS::Core::DoConnectCallback(int rv) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424386 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424386 SSLClientSocketNSS::Core::DoConnectCallback")); @@ -2236,8 +2236,8 @@ void SSLClientSocketNSS::Core::DoConnectCallback(int rv) { } void SSLClientSocketNSS::Core::DoReadCallback(int rv) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/424386 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/424386 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "424386 SSLClientSocketNSS::Core::DoReadCallback")); @@ -2256,8 +2256,8 @@ void SSLClientSocketNSS::Core::DoReadCallback(int rv) { PostOrRunCallback( FROM_HERE, base::Bind(&Core::DidNSSRead, this, rv)); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile1( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile1( FROM_HERE_WITH_EXPLICIT_FUNCTION( "SSLClientSocketNSS::Core::DoReadCallback")); PostOrRunCallback( @@ -2691,8 +2691,8 @@ void SSLClientSocketNSS::Core::DidNSSWrite(int result) { } void SSLClientSocketNSS::Core::BufferSendComplete(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "418183 DidCompleteReadWrite => Core::BufferSendComplete")); @@ -2739,8 +2739,8 @@ void SSLClientSocketNSS::Core::OnGetChannelIDComplete(int result) { void SSLClientSocketNSS::Core::BufferRecvComplete( IOBuffer* read_buffer, int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "418183 DidCompleteReadWrite => SSLClientSocketNSS::Core::...")); diff --git a/net/socket/stream_listen_socket.cc b/net/socket/stream_listen_socket.cc index c459e6d..abb5fbc 100644 --- a/net/socket/stream_listen_socket.cc +++ b/net/socket/stream_listen_socket.cc @@ -21,7 +21,7 @@ #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/posix/eintr_wrapper.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/sys_byteorder.h" #include "base/threading/platform_thread.h" #include "build/build_config.h" @@ -247,10 +247,9 @@ void StreamListenSocket::UnwatchSocket() { #if defined(OS_WIN) // MessageLoop watcher callback. void StreamListenSocket::OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( - FROM_HERE_WITH_EXPLICIT_FUNCTION( - "StreamListenSocket_OnObjectSignaled")); + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( + FROM_HERE_WITH_EXPLICIT_FUNCTION("StreamListenSocket_OnObjectSignaled")); WSANETWORKEVENTS ev; if (kSocketError == WSAEnumNetworkEvents(socket_, socket_event_, &ev)) { diff --git a/net/socket/tcp_client_socket.cc b/net/socket/tcp_client_socket.cc index 96402fe..dcf124b 100644 --- a/net/socket/tcp_client_socket.cc +++ b/net/socket/tcp_client_socket.cc @@ -6,7 +6,7 @@ #include "base/callback_helpers.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "net/base/io_buffer.h" #include "net/base/ip_endpoint.h" #include "net/base/net_errors.h" @@ -307,8 +307,8 @@ void TCPClientSocket::DidCompleteReadWrite(const CompletionCallback& callback, if (result > 0) use_history_.set_was_used_to_convey_data(); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "TCPClientSocket::DidCompleteReadWrite")); callback.Run(result); diff --git a/net/socket/tcp_socket_win.cc b/net/socket/tcp_socket_win.cc index 1598948..d5565ad 100644 --- a/net/socket/tcp_socket_win.cc +++ b/net/socket/tcp_socket_win.cc @@ -10,7 +10,7 @@ #include "base/callback_helpers.h" #include "base/logging.h" #include "base/metrics/stats_counters.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/win/windows_version.h" #include "net/base/address_list.h" #include "net/base/connection_type_histograms.h" @@ -246,8 +246,8 @@ void TCPSocketWin::Core::WatchForWrite() { } void TCPSocketWin::Core::ReadDelegate::OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "TCPSocketWin_Core_ReadDelegate_OnObjectSignaled")); @@ -264,8 +264,8 @@ void TCPSocketWin::Core::ReadDelegate::OnObjectSignaled(HANDLE object) { void TCPSocketWin::Core::WriteDelegate::OnObjectSignaled( HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "TCPSocketWin_Core_WriteDelegate_OnObjectSignaled")); @@ -766,10 +766,9 @@ int TCPSocketWin::AcceptInternal(scoped_ptr<TCPSocketWin>* socket, } void TCPSocketWin::OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( - FROM_HERE_WITH_EXPLICIT_FUNCTION( - "TCPSocketWin_OnObjectSignaled")); + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( + FROM_HERE_WITH_EXPLICIT_FUNCTION("TCPSocketWin_OnObjectSignaled")); WSANETWORKEVENTS ev; if (WSAEnumNetworkEvents(socket_, accept_event_, &ev) == SOCKET_ERROR) { @@ -1035,8 +1034,8 @@ void TCPSocketWin::DidSignalRead() { core_->read_buffer_length_ = 0; DCHECK_NE(rv, ERR_IO_PENDING); - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("TCPSocketWin::DidSignalRead")); base::ResetAndReturn(&read_callback_).Run(rv); } diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc index 6afa427..d9a5108 100644 --- a/net/spdy/spdy_session.cc +++ b/net/spdy/spdy_session.cc @@ -16,7 +16,7 @@ #include "base/metrics/histogram.h" #include "base/metrics/sparse_histogram.h" #include "base/metrics/stats_counters.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/stl_util.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" @@ -1337,8 +1337,8 @@ void SpdySession::EnqueueResetStreamFrame(SpdyStreamId stream_id, } void SpdySession::PumpReadLoop(ReadState expected_read_state, int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "418183 DoReadCallback => SpdySession::PumpReadLoop")); diff --git a/net/ssl/default_channel_id_store.cc b/net/ssl/default_channel_id_store.cc index 60e06ed..a6fb399 100644 --- a/net/ssl/default_channel_id_store.cc +++ b/net/ssl/default_channel_id_store.cc @@ -7,7 +7,7 @@ #include "base/bind.h" #include "base/message_loop/message_loop.h" #include "base/metrics/histogram.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "net/base/net_errors.h" namespace net { @@ -62,8 +62,8 @@ DefaultChannelIDStore::GetChannelIDTask::~GetChannelIDTask() { void DefaultChannelIDStore::GetChannelIDTask::Run( DefaultChannelIDStore* store) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/425814 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "425814 DefaultChannelIDStore::GetChannelIDTask::Run")); @@ -118,8 +118,8 @@ DefaultChannelIDStore::SetChannelIDTask::~SetChannelIDTask() { void DefaultChannelIDStore::SetChannelIDTask::Run( DefaultChannelIDStore* store) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/425814 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "425814 DefaultChannelIDStore::SetChannelIDTask::Run")); @@ -156,8 +156,8 @@ DefaultChannelIDStore::DeleteChannelIDTask:: void DefaultChannelIDStore::DeleteChannelIDTask::Run( DefaultChannelIDStore* store) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/425814 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "425814 DefaultChannelIDStore::DeleteChannelIDTask::Run")); @@ -199,8 +199,8 @@ DefaultChannelIDStore::DeleteAllCreatedBetweenTask:: void DefaultChannelIDStore::DeleteAllCreatedBetweenTask::Run( DefaultChannelIDStore* store) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/425814 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "425814 DefaultChannelIDStore::DeleteAllCreatedBetweenTask::Run")); @@ -234,8 +234,8 @@ DefaultChannelIDStore::GetAllChannelIDsTask:: void DefaultChannelIDStore::GetAllChannelIDsTask::Run( DefaultChannelIDStore* store) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/425814 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/425814 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "425814 DefaultChannelIDStore::GetAllChannelIDsTask::Run")); diff --git a/net/udp/udp_socket_win.cc b/net/udp/udp_socket_win.cc index bb48c7d..b18aa0a 100644 --- a/net/udp/udp_socket_win.cc +++ b/net/udp/udp_socket_win.cc @@ -13,7 +13,7 @@ #include "base/metrics/histogram.h" #include "base/metrics/sparse_histogram.h" #include "base/metrics/stats_counters.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/rand_util.h" #include "net/base/io_buffer.h" #include "net/base/ip_endpoint.h" @@ -144,8 +144,8 @@ void UDPSocketWin::Core::WatchForWrite() { } void UDPSocketWin::Core::ReadDelegate::OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "UDPSocketWin_Core_ReadDelegate_OnObjectSignaled")); @@ -157,8 +157,8 @@ void UDPSocketWin::Core::ReadDelegate::OnObjectSignaled(HANDLE object) { } void UDPSocketWin::Core::WriteDelegate::OnObjectSignaled(HANDLE object) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/418183 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "UDPSocketWin_Core_WriteDelegate_OnObjectSignaled")); diff --git a/net/url_request/url_fetcher_response_writer.cc b/net/url_request/url_fetcher_response_writer.cc index 3c66dd3..7f162ae 100644 --- a/net/url_request/url_fetcher_response_writer.cc +++ b/net/url_request/url_fetcher_response_writer.cc @@ -6,7 +6,7 @@ #include "base/files/file_util.h" #include "base/location.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/sequenced_task_runner.h" #include "base/task_runner_util.h" #include "net/base/file_stream.h" @@ -174,8 +174,8 @@ void URLFetcherFileWriter::DidCreateTempFile(const CompletionCallback& callback, void URLFetcherFileWriter::DidOpenFile(const CompletionCallback& callback, int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "423948 URLFetcherFileWriter::DidOpenFile")); diff --git a/net/url_request/url_request_data_job.cc b/net/url_request/url_request_data_job.cc index db4367f..879b8ba 100644 --- a/net/url_request/url_request_data_job.cc +++ b/net/url_request/url_request_data_job.cc @@ -6,7 +6,7 @@ #include "net/url_request/url_request_data_job.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "net/base/data_url.h" #include "net/base/net_errors.h" #include "net/http/http_response_headers.h" @@ -53,8 +53,8 @@ int URLRequestDataJob::GetData(std::string* mime_type, std::string* charset, std::string* data, const CompletionCallback& callback) const { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("422489 URLRequestDataJob::GetData")); // Check if data URL is valid. If not, don't bother to try to extract data. diff --git a/net/url_request/url_request_file_job.cc b/net/url_request/url_request_file_job.cc index eb24a95..7b3b195 100644 --- a/net/url_request/url_request_file_job.cc +++ b/net/url_request/url_request_file_job.cc @@ -23,7 +23,7 @@ #include "base/compiler_specific.h" #include "base/files/file_util.h" #include "base/message_loop/message_loop.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_util.h" #include "base/synchronization/lock.h" #include "base/task_runner.h" @@ -250,8 +250,8 @@ void URLRequestFileJob::DidFetchMetaInfo(const FileMetaInfo* meta_info) { } void URLRequestFileJob::DidOpen(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("423948 URLRequestFileJob::DidOpen")); if (result != OK) { @@ -270,8 +270,8 @@ void URLRequestFileJob::DidOpen(int result) { DCHECK_GE(remaining_bytes_, 0); if (remaining_bytes_ > 0 && byte_range_.first_byte_position() != 0) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile1( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile1( FROM_HERE_WITH_EXPLICIT_FUNCTION( "423948 URLRequestFileJob::DidOpen 1")); diff --git a/net/url_request/url_request_job.cc b/net/url_request/url_request_job.cc index 09e462b..16f7b71 100644 --- a/net/url_request/url_request_job.cc +++ b/net/url_request/url_request_job.cc @@ -8,7 +8,7 @@ #include "base/compiler_specific.h" #include "base/message_loop/message_loop.h" #include "base/power_monitor/power_monitor.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "net/base/auth.h" @@ -300,8 +300,8 @@ void URLRequestJob::NotifyBeforeNetworkStart(bool* defer) { } void URLRequestJob::NotifyHeadersComplete() { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "423948 URLRequestJob::NotifyHeadersComplete")); diff --git a/net/url_request/url_request_simple_job.cc b/net/url_request/url_request_simple_job.cc index a124864..b855932 100644 --- a/net/url_request/url_request_simple_job.cc +++ b/net/url_request/url_request_simple_job.cc @@ -9,7 +9,7 @@ #include "base/bind.h" #include "base/compiler_specific.h" #include "base/message_loop/message_loop.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "net/base/io_buffer.h" #include "net/base/net_errors.h" #include "net/http/http_request_headers.h" @@ -61,8 +61,8 @@ void URLRequestSimpleJob::StartAsync() { return; if (ranges().size() > 1) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 URLRequestSimpleJob::StartAsync 1")); @@ -76,9 +76,9 @@ void URLRequestSimpleJob::StartAsync() { int result; { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. // Remove the block and assign 'result' in its declaration. - tracked_objects::ScopedProfile tracking_profile( + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 URLRequestSimpleJob::StartAsync 2")); @@ -90,8 +90,8 @@ void URLRequestSimpleJob::StartAsync() { } if (result != ERR_IO_PENDING) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 URLRequestSimpleJob::StartAsync 3")); @@ -100,8 +100,8 @@ void URLRequestSimpleJob::StartAsync() { } void URLRequestSimpleJob::OnGetDataCompleted(int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 URLRequestSimpleJob::OnGetDataCompleted")); diff --git a/storage/browser/blob/local_file_stream_reader.cc b/storage/browser/blob/local_file_stream_reader.cc index 2ddff12..e3b827c 100644 --- a/storage/browser/blob/local_file_stream_reader.cc +++ b/storage/browser/blob/local_file_stream_reader.cc @@ -8,7 +8,7 @@ #include "base/files/file_util_proxy.h" #include "base/location.h" #include "base/logging.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/task_runner.h" #include "net/base/file_stream.h" #include "net/base/io_buffer.h" @@ -102,8 +102,8 @@ void LocalFileStreamReader::DidVerifyForOpen( void LocalFileStreamReader::DidOpenFileStream( const net::CompletionCallback& callback, int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "423948 LocalFileStreamReader::DidOpenFileStream")); diff --git a/storage/browser/blob/view_blob_internals_job.cc b/storage/browser/blob/view_blob_internals_job.cc index b9e0317..a15d2ee 100644 --- a/storage/browser/blob/view_blob_internals_job.cc +++ b/storage/browser/blob/view_blob_internals_job.cc @@ -11,7 +11,7 @@ #include "base/i18n/time_formatting.h" #include "base/logging.h" #include "base/message_loop/message_loop.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" @@ -132,8 +132,8 @@ int ViewBlobInternalsJob::GetData( std::string* charset, std::string* data, const net::CompletionCallback& callback) const { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION("422489 ViewBlobInternalsJob::GetData")); mime_type->assign("text/html"); diff --git a/storage/browser/fileapi/local_file_stream_writer.cc b/storage/browser/fileapi/local_file_stream_writer.cc index 968b5fe..c6a1d51 100644 --- a/storage/browser/fileapi/local_file_stream_writer.cc +++ b/storage/browser/fileapi/local_file_stream_writer.cc @@ -6,7 +6,7 @@ #include "base/callback.h" #include "base/message_loop/message_loop.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "net/base/file_stream.h" #include "net/base/io_buffer.h" #include "net/base/net_errors.h" @@ -126,8 +126,8 @@ void LocalFileStreamWriter::DidOpen( const net::CompletionCallback& error_callback, const base::Closure& main_operation, int result) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/423948 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "423948 LocalFileStreamWriter::DidOpen")); diff --git a/sync/internal_api/http_bridge.cc b/sync/internal_api/http_bridge.cc index ff5e4e2..847812b 100644 --- a/sync/internal_api/http_bridge.cc +++ b/sync/internal_api/http_bridge.cc @@ -5,7 +5,7 @@ #include "sync/internal_api/public/http_bridge.h" #include "base/message_loop/message_loop.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/strings/string_number_conversions.h" #include "net/base/load_flags.h" #include "net/base/net_errors.h" @@ -345,8 +345,8 @@ void HttpBridge::DestroyURLFetcherOnIOThread(net::URLFetcher* fetcher) { } void HttpBridge::OnURLFetchComplete(const net::URLFetcher* source) { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422577 is fixed. - tracked_objects::ScopedProfile tracking_profile( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422577 is fixed. + tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422577 HttpBridge::OnURLFetchComplete")); diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc index 852335e..b9d9163 100644 --- a/ui/base/resource/resource_bundle.cc +++ b/ui/base/resource/resource_bundle.cc @@ -15,7 +15,7 @@ #include "base/memory/ref_counted_memory.h" #include "base/metrics/histogram.h" #include "base/path_service.h" -#include "base/profiler/scoped_profile.h" +#include "base/profiler/scoped_tracker.h" #include "base/stl_util.h" #include "base/strings/string_piece.h" #include "base/strings/utf_string_conversions.h" @@ -454,8 +454,8 @@ base::StringPiece ResourceBundle::GetRawDataResource(int resource_id) const { base::StringPiece ResourceBundle::GetRawDataResourceForScale( int resource_id, ScaleFactor scale_factor) const { - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile1( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile1( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 ResourceBundle::GetRawDataResourceForScale 1")); @@ -464,8 +464,8 @@ base::StringPiece ResourceBundle::GetRawDataResourceForScale( delegate_->GetRawDataResource(resource_id, scale_factor, &data)) return data; - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile2( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile2( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 ResourceBundle::GetRawDataResourceForScale 2")); @@ -477,8 +477,8 @@ base::StringPiece ResourceBundle::GetRawDataResourceForScale( return data; } } - // TODO(vadimt): Remove ScopedProfile below once crbug.com/422489 is fixed. - tracked_objects::ScopedProfile tracking_profile3( + // TODO(vadimt): Remove ScopedTracker below once crbug.com/422489 is fixed. + tracked_objects::ScopedTracker tracking_profile3( FROM_HERE_WITH_EXPLICIT_FUNCTION( "422489 ResourceBundle::GetRawDataResourceForScale 3")); |