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

Unified Diff: chrome/renderer/renderer_main.cc

Issue 6250070: Added command line switches and UI (controlled via a build option) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review issues Created 9 years, 11 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
« chrome/common/profiling.cc ('K') | « chrome/common/profiling.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_main.cc
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc
index b6cdd6ca80b6108a181360b790fcac36cfa73834..f0c96d50cc875cbbc13e2d352a22d1f8ac4c84b0 100644
--- a/chrome/renderer/renderer_main.cc
+++ b/chrome/renderer/renderer_main.cc
@@ -27,6 +27,7 @@
#include "chrome/common/main_function_params.h"
#include "chrome/common/net/net_resource_provider.h"
#include "chrome/common/pepper_plugin_registry.h"
+#include "chrome/common/profiling.h"
#include "chrome/renderer/renderer_main_platform_delegate.h"
#include "chrome/renderer/render_process_impl.h"
#include "chrome/renderer/render_thread.h"
@@ -185,6 +186,7 @@ int RendererMain(const MainFunctionParams& parameters) {
const CommandLine& parsed_command_line = parameters.command_line_;
base::mac::ScopedNSAutoreleasePool* pool = parameters.autorelease_pool_;
+ Profiling::StartAtStart();
#if defined(OS_MACOSX)
// TODO(viettrungluu): Code taken from browser_main.cc.
int pipefd[2];
@@ -241,6 +243,7 @@ int RendererMain(const MainFunctionParams& parameters) {
MessageLoop::TYPE_UI : MessageLoop::TYPE_DEFAULT);
#endif
+ Profiling::MainMessageLoopStarted();
base::PlatformThread::SetName("CrRendererMain");
ui::SystemMonitor system_monitor;
« chrome/common/profiling.cc ('K') | « chrome/common/profiling.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698