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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 10696108: Record UMA histogram for sync IPC time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 return render_thread->Send(msg); 189 return render_thread->Send(msg);
190 scoped_refptr<IPC::SyncMessageFilter> sync_msg_filter( 190 scoped_refptr<IPC::SyncMessageFilter> sync_msg_filter(
191 ChildThread::current()->sync_message_filter()); 191 ChildThread::current()->sync_message_filter());
192 return sync_msg_filter->Send(msg); 192 return sync_msg_filter->Send(msg);
193 } 193 }
194 194
195 bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg) { 195 bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg) {
196 base::TimeTicks begin = base::TimeTicks::Now(); 196 base::TimeTicks begin = base::TimeTicks::Now();
197 const bool success = SendSyncMessageFromAnyThreadInternal(msg); 197 const bool success = SendSyncMessageFromAnyThreadInternal(msg);
198 base::TimeDelta delta = base::TimeTicks::Now() - begin; 198 base::TimeDelta delta = base::TimeTicks::Now() - begin;
199 HISTOGRAM_TIMES("RendererSyncIPC.ElapsedTime", delta); 199 UMA_HISTOGRAM_TIMES("RendererSyncIPC.ElapsedTime", delta);
200 return success; 200 return success;
201 } 201 }
202 202
203 } // namespace 203 } // namespace
204 204
205 WebKit::WebClipboard* RendererWebKitPlatformSupportImpl::clipboard() { 205 WebKit::WebClipboard* RendererWebKitPlatformSupportImpl::clipboard() {
206 return clipboard_.get(); 206 return clipboard_.get();
207 } 207 }
208 208
209 WebKit::WebMimeRegistry* RendererWebKitPlatformSupportImpl::mimeRegistry() { 209 WebKit::WebMimeRegistry* RendererWebKitPlatformSupportImpl::mimeRegistry() {
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 bool enable) { 730 bool enable) {
731 bool was_enabled = g_sandbox_enabled; 731 bool was_enabled = g_sandbox_enabled;
732 g_sandbox_enabled = enable; 732 g_sandbox_enabled = enable;
733 return was_enabled; 733 return was_enabled;
734 } 734 }
735 735
736 GpuChannelHostFactory* 736 GpuChannelHostFactory*
737 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 737 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
738 return RenderThreadImpl::current(); 738 return RenderThreadImpl::current();
739 } 739 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698