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

Side by Side Diff: chrome/browser/metrics/first_web_contents_profiler.cc

Issue 1413153010: Move components/startup_metric_utils/* to components/startup_metric_utils/browser/*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't check command line in ChromeMainDelegate constructor. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if !defined(OS_ANDROID) 5 #if !defined(OS_ANDROID)
6 6
7 #include "chrome/browser/metrics/first_web_contents_profiler.h" 7 #include "chrome/browser/metrics/first_web_contents_profiler.h"
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/process/process_info.h" 14 #include "base/process/process_info.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
16 #include "base/thread_task_runner_handle.h" 16 #include "base/thread_task_runner_handle.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "chrome/browser/ui/browser.h" 18 #include "chrome/browser/ui/browser.h"
19 #include "chrome/browser/ui/browser_iterator.h" 19 #include "chrome/browser/ui/browser_iterator.h"
20 #include "chrome/browser/ui/tabs/tab_strip_model.h" 20 #include "chrome/browser/ui/tabs/tab_strip_model.h"
21 #include "components/metrics/profiler/tracking_synchronizer.h" 21 #include "components/metrics/profiler/tracking_synchronizer.h"
22 #include "components/metrics/proto/profiler_event.pb.h" 22 #include "components/metrics/proto/profiler_event.pb.h"
23 #include "components/startup_metric_utils/startup_metric_utils.h" 23 #include "components/startup_metric_utils/browser/startup_metric_utils.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "content/public/browser/navigation_handle.h" 25 #include "content/public/browser/navigation_handle.h"
26 26
27 namespace { 27 namespace {
28 28
29 // The initial delay for responsiveness prober in milliseconds. 29 // The initial delay for responsiveness prober in milliseconds.
30 const int kInitialDelayMs = 20; 30 const int kInitialDelayMs = 20;
31 31
32 // The following is the multiplier is used to delay the probe for 32 // The following is the multiplier is used to delay the probe for
33 // responsiveness. 33 // responsiveness.
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 100, base::Histogram::kUmaTargetedHistogramFlag); 318 100, base::Histogram::kUmaTargetedHistogramFlag);
319 319
320 const std::string unresponsiveness_10sec_histogram_name = 320 const std::string unresponsiveness_10sec_histogram_name =
321 "Startup.FirstWebContents.UINotResponsive_10sec"; 321 "Startup.FirstWebContents.UINotResponsive_10sec";
322 unresponsiveness_10sec_histogram_ = base::Histogram::FactoryTimeGet( 322 unresponsiveness_10sec_histogram_ = base::Histogram::FactoryTimeGet(
323 unresponsiveness_10sec_histogram_name, 323 unresponsiveness_10sec_histogram_name,
324 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromSeconds(60), 324 base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromSeconds(60),
325 100, base::Histogram::kUmaTargetedHistogramFlag); 325 100, base::Histogram::kUmaTargetedHistogramFlag);
326 } 326 }
327 #endif // !defined(OS_ANDROID) 327 #endif // !defined(OS_ANDROID)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698