summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.cc
diff options
context:
space:
mode:
authorsiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 13:48:24 +0000
committersiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-10 13:48:24 +0000
commit04e3f3559dac2a7a5178e8f0d935d69970e2a33c (patch)
treead98622f0250323b5d7bd6adc4b51c4023b71872 /chrome_frame/chrome_frame_automation.cc
parent89d5d7d0885d18d13e94acfbd00268d46e9752ab (diff)
downloadchromium_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_frame/chrome_frame_automation.cc')
-rw-r--r--chrome_frame/chrome_frame_automation.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
index ec3d1f6..49971d8 100644
--- a/chrome_frame/chrome_frame_automation.cc
+++ b/chrome_frame/chrome_frame_automation.cc
@@ -7,6 +7,7 @@
#include "base/callback.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
+#include "base/trace_event.h"
#include "base/file_util.h"
#include "base/file_version_info.h"
#include "base/lock.h"
@@ -130,6 +131,8 @@ class ChromeFrameAutomationProxyImpl::CFMsgDispatcher
ChromeFrameAutomationProxyImpl::ChromeFrameAutomationProxyImpl(
int launch_timeout)
: AutomationProxy(launch_timeout) {
+ TRACE_EVENT_BEGIN("chromeframe.automationproxy", this, "");
+
sync_ = new CFMsgDispatcher();
message_filter_ = new TabProxyNotificationMessageFilter(tracker_.get());
// Order of filters is not important.
@@ -138,6 +141,7 @@ ChromeFrameAutomationProxyImpl::ChromeFrameAutomationProxyImpl(
}
ChromeFrameAutomationProxyImpl::~ChromeFrameAutomationProxyImpl() {
+ TRACE_EVENT_END("chromeframe.automationproxy", this, "");
}
void ChromeFrameAutomationProxyImpl::SendAsAsync(IPC::SyncMessage* msg,
@@ -216,6 +220,8 @@ ProxyFactory::~ProxyFactory() {
void ProxyFactory::GetAutomationServer(
LaunchDelegate* delegate, const ChromeFrameLaunchParams& params,
void** automation_server_id) {
+ TRACE_EVENT_BEGIN("chromeframe.createproxy", this, "");
+
ProxyCacheEntry* entry = NULL;
// Find already existing launcher thread for given profile
AutoLock lock(lock_);
@@ -351,6 +357,8 @@ void ProxyFactory::CreateProxy(ProxyFactory::ProxyCacheEntry* entry,
AUTOMATION_CREATE_TAB_FAILED + 1);
}
+ TRACE_EVENT_END("chromeframe.createproxy", this, "");
+
// Finally set the proxy.
entry->proxy = proxy;
delegate->LaunchComplete(proxy, entry->launch_result);