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

Unified Diff: chrome/app/chrome_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: Some cleanup 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
Index: chrome/app/chrome_main.cc
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
index edd4c0d0726f473312d86a8ebb9f41bd3d4b44c0..d58c5d33dbf965a4a6b33a5507de6e6111fc935a 100644
--- a/chrome/app/chrome_main.cc
+++ b/chrome/app/chrome_main.cc
@@ -31,6 +31,7 @@
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/main_function_params.h"
+#include "chrome/common/profiling.h"
#include "chrome/common/sandbox_init_wrapper.h"
#include "chrome/common/set_process_title.h"
#include "chrome/common/url_constants.h"
@@ -635,6 +636,8 @@ int ChromeMain(int argc, char** argv) {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ Profiling::StartAtStart();
Evan Martin 2011/02/01 02:45:59 I've been trying to move code out of this monster
DaveMoore 2011/02/01 19:21:55 I want to be able to profile the startup code itse
+
#if defined(OS_POSIX)
if (HandleVersionSwitches(command_line))
return 0; // Got a --version switch; exit with a success error code.

Powered by Google App Engine
This is Rietveld 408576698