diff options
author | siggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-10 13:48:24 +0000 |
---|---|---|
committer | siggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-10 13:48:24 +0000 |
commit | 04e3f3559dac2a7a5178e8f0d935d69970e2a33c (patch) | |
tree | ad98622f0250323b5d7bd6adc4b51c4023b71872 /chrome/app | |
parent | 89d5d7d0885d18d13e94acfbd00268d46e9752ab (diff) | |
download | chromium_src-04e3f3559dac2a7a5178e8f0d935d69970e2a33c.zip chromium_src-04e3f3559dac2a7a5178e8f0d935d69970e2a33c.tar.gz chromium_src-04e3f3559dac2a7a5178e8f0d935d69970e2a33c.tar.bz2 |
Instrument Chrome and Chrome Frame for some perf measurements.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1989005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/chrome_dll_main.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc index 96a4715..c1077ac 100644 --- a/chrome/app/chrome_dll_main.cc +++ b/chrome/app/chrome_dll_main.cc @@ -45,6 +45,7 @@ #include "base/stats_counters.h" #include "base/stats_table.h" #include "base/string_util.h" +#include "base/trace_event.h" #include "chrome/browser/diagnostics/diagnostics_main.h" #include "chrome/browser/renderer_host/render_process_host.h" #include "chrome/common/chrome_constants.h" @@ -420,6 +421,8 @@ int ChromeMain(int argc, char** argv) { // The exit manager is in charge of calling the dtors of singleton objects. base::AtExitManager exit_manager; + TRACE_EVENT_BEGIN("chrome.main", NULL, ""); + // We need this pool for all the objects created before we get to the // event loop, but we don't want to leave them hanging around until the // app quits. Each "main" needs to flush this pool right before it goes into @@ -841,5 +844,7 @@ int ChromeMain(int argc, char** argv) { DestructCrashReporter(); #endif // OS_MACOSX && GOOGLE_CHROME_BUILD + TRACE_EVENT_END("chrome.main", NULL, ""); + return rv; } |