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

Side by Side Diff: content/renderer/renderer_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: merge to 84062 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_MACOSX) 5 #if defined(OS_MACOSX)
6 #include <signal.h> 6 #include <signal.h>
7 #include <unistd.h> 7 #include <unistd.h>
8 #endif // OS_MACOSX 8 #endif // OS_MACOSX
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 123
124 private: 124 private:
125 base::TimeTicks begin_process_message_; 125 base::TimeTicks begin_process_message_;
126 base::Histogram* const process_times_; 126 base::Histogram* const process_times_;
127 DISALLOW_COPY_AND_ASSIGN(RendererMessageLoopObserver); 127 DISALLOW_COPY_AND_ASSIGN(RendererMessageLoopObserver);
128 }; 128 };
129 129
130 // mainline routine for running as the Renderer process 130 // mainline routine for running as the Renderer process
131 int RendererMain(const MainFunctionParams& parameters) { 131 int RendererMain(const MainFunctionParams& parameters) {
132 TRACE_EVENT_BEGIN("RendererMain", 0, ""); 132 TRACE_EVENT_BEGIN_ETW("RendererMain", 0, "");
133 133
134 const CommandLine& parsed_command_line = parameters.command_line_; 134 const CommandLine& parsed_command_line = parameters.command_line_;
135 base::mac::ScopedNSAutoreleasePool* pool = parameters.autorelease_pool_; 135 base::mac::ScopedNSAutoreleasePool* pool = parameters.autorelease_pool_;
136 136
137 #if defined(OS_MACOSX) 137 #if defined(OS_MACOSX)
138 InstallFrameworkHacks(); 138 InstallFrameworkHacks();
139 #endif // OS_MACOSX 139 #endif // OS_MACOSX
140 140
141 #if defined(OS_CHROMEOS) 141 #if defined(OS_CHROMEOS)
142 // As Zygote process starts up earlier than browser process gets its own 142 // As Zygote process starts up earlier than browser process gets its own
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 render_process.set_main_thread(new RenderThread()); 222 render_process.set_main_thread(new RenderThread());
223 #endif 223 #endif
224 224
225 platform.RunSandboxTests(); 225 platform.RunSandboxTests();
226 226
227 startup_timer.Stop(); // End of Startup Time Measurement. 227 startup_timer.Stop(); // End of Startup Time Measurement.
228 228
229 if (run_loop) { 229 if (run_loop) {
230 if (pool) 230 if (pool)
231 pool->Recycle(); 231 pool->Recycle();
232 TRACE_EVENT_BEGIN("RendererMain.START_MSG_LOOP", 0, 0); 232 TRACE_EVENT_BEGIN_ETW("RendererMain.START_MSG_LOOP", 0, 0);
233 MessageLoop::current()->Run(); 233 MessageLoop::current()->Run();
234 TRACE_EVENT_END("RendererMain.START_MSG_LOOP", 0, 0); 234 TRACE_EVENT_END_ETW("RendererMain.START_MSG_LOOP", 0, 0);
235 } 235 }
236 } 236 }
237 platform.PlatformUninitialize(); 237 platform.PlatformUninitialize();
238 TRACE_EVENT_END("RendererMain", 0, ""); 238 TRACE_EVENT_END_ETW("RendererMain", 0, "");
239 return 0; 239 return 0;
240 } 240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698