diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-12 01:37:35 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-12 01:37:35 +0000 |
commit | eb64b400741ae0046d43659984fda96117b2cbbc (patch) | |
tree | be3a1fd514da10e69f23e710fe40a96ba0f58950 | |
parent | 5483b446fdffe2d3015e421c84f480dd39162331 (diff) | |
download | chromium_src-eb64b400741ae0046d43659984fda96117b2cbbc.zip chromium_src-eb64b400741ae0046d43659984fda96117b2cbbc.tar.gz chromium_src-eb64b400741ae0046d43659984fda96117b2cbbc.tar.bz2 |
Add event traces to measure the performance of the function which pre reads chrome.dll to improve startup performance.
Bug=51638
TBR=stoyan
Review URL: http://codereview.chromium.org/3158008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55828 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/app/client_util.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/app/client_util.cc b/chrome/app/client_util.cc index e0af23c..a360d51 100644 --- a/chrome/app/client_util.cc +++ b/chrome/app/client_util.cc @@ -8,6 +8,7 @@ #include "base/command_line.h" #include "base/logging.h" #include "base/file_util.h" +#include "base/trace_event.h" #include "chrome/app/breakpad_win.h" #include "chrome/app/client_util.h" #include "chrome/common/chrome_switches.h" @@ -137,7 +138,9 @@ HMODULE LoadChromeWithDirectory(std::wstring* dir) { key = NULL; } if (pre_read) { + TRACE_EVENT_BEGIN("PreReadImage", 0, ""); file_util::PreReadImage(dir->c_str(), pre_read_size, pre_read_step_size); + TRACE_EVENT_END("PreReadImage", 0, ""); } } #endif // NDEBUG |