summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_main_runner.cc
diff options
context:
space:
mode:
authoryiyaoliu <yiyaoliu@chromium.org>2015-04-23 14:56:36 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-23 21:56:42 +0000
commit252f915eb0b26d3952144b85128933a3b226ccc1 (patch)
treef8bd605036ebb708f3fc79cc9433e9eabe960b0d /content/browser/browser_main_runner.cc
parent1ab02972b07208751831e01597382b053e423876 (diff)
downloadchromium_src-252f915eb0b26d3952144b85128933a3b226ccc1.zip
chromium_src-252f915eb0b26d3952144b85128933a3b226ccc1.tar.gz
chromium_src-252f915eb0b26d3952144b85128933a3b226ccc1.tar.bz2
Instrument some potentially expensive functions called from BrowserMainRunnerImpl::Initialize.
There can be more places to instrument, this does not intend to build a full instrumentation list. The plan is to add more based on the result. BUG=453640 Review URL: https://codereview.chromium.org/1069403004 Cr-Commit-Position: refs/heads/master@{#326661}
Diffstat (limited to 'content/browser/browser_main_runner.cc')
-rw-r--r--content/browser/browser_main_runner.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/browser/browser_main_runner.cc b/content/browser/browser_main_runner.cc
index 524bdfb..f98ece3 100644
--- a/content/browser/browser_main_runner.cc
+++ b/content/browser/browser_main_runner.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/metrics/statistics_recorder.h"
+#include "base/profiler/scoped_profile.h"
#include "base/profiler/scoped_tracker.h"
#include "base/trace_event/trace_event.h"
#include "base/tracked_objects.h"
@@ -131,9 +132,8 @@ class BrowserMainRunnerImpl : public BrowserMainRunner {
// TODO(vadimt, yiyaoliu): Remove all tracked_objects references below once
// crbug.com/453640 is fixed.
tracked_objects::ThreadData::InitializeThreadContext("CrBrowserMain");
- tracked_objects::ScopedTracker tracking_profile(
- FROM_HERE_WITH_EXPLICIT_FUNCTION(
- "453640 BrowserMainRunnerImpl::Initialize"));
+ TRACK_SCOPED_REGION(
+ "Startup", "BrowserMainRunnerImpl::Initialize");
TRACE_EVENT0("startup", "BrowserMainRunnerImpl::Initialize");
// On Android we normally initialize the browser in a series of UI thread