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

Unified Diff: chrome/browser/browser_main.cc

Issue 6862002: Merge gpu_trace_event back into base/debug/trace_event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: shared dll build, phishing test shutdown crashes, tsan warnings; merge 84612 Created 9 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/browser_main.cc
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 274cd002565e5e69cdd7fdc3b9d938d02fab35ba..d1090dd476d7b7b7faf1ae669d68f0b642d80265 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -566,7 +566,7 @@ void HandleTestParameters(const CommandLine& command_line) {
}
void RunUIMessageLoop(BrowserProcess* browser_process) {
- TRACE_EVENT_BEGIN("BrowserMain:MESSAGE_LOOP", 0, "");
+ TRACE_EVENT_BEGIN_ETW("BrowserMain:MESSAGE_LOOP", 0, "");
// This should be invoked as close to the start of the browser's
// UI thread message loop as possible to get a stable measurement
// across versions.
@@ -589,7 +589,7 @@ void RunUIMessageLoop(BrowserProcess* browser_process) {
true);
#endif
- TRACE_EVENT_END("BrowserMain:MESSAGE_LOOP", 0, "");
+ TRACE_EVENT_END_ETW("BrowserMain:MESSAGE_LOOP", 0, "");
}
void AddFirstRunNewTabs(BrowserInit* browser_init,
@@ -1122,7 +1122,7 @@ bool IsMetricsReportingEnabled(const PrefService* local_state) {
// Main routine for running as the Browser process.
int BrowserMain(const MainFunctionParams& parameters) {
- TRACE_EVENT_BEGIN("BrowserMain", 0, "");
+ TRACE_EVENT_BEGIN_ETW("BrowserMain", 0, "");
// If we're running tests (ui_task is non-null).
if (parameters.ui_task)
@@ -1912,6 +1912,6 @@ int BrowserMain(const MainFunctionParams& parameters) {
false);
chromeos::BootTimesLoader::Get()->WriteLogoutTimes();
#endif
- TRACE_EVENT_END("BrowserMain", 0, 0);
+ TRACE_EVENT_END_ETW("BrowserMain", 0, 0);
return result_code;
}

Powered by Google App Engine
This is Rietveld 408576698