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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 10451076: Adding UMA for sync IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: histogram Created 8 years, 7 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: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 15e3246cb598ca5a4b34f5448e8798b165e97110..7d713fea16de4db779f623d31a789bce35591e59 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -902,6 +902,8 @@ bool RenderProcessHostImpl::OnMessageReceived(const IPC::Message& msg) {
SuddenTerminationChanged)
IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction,
OnUserMetricsRecordAction)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_SyncIPCElapsedTime,
+ OnSyncIPCElapsedTime)
IPC_MESSAGE_HANDLER(ViewHostMsg_SavedPageAsMHTML, OnSavedPageAsMHTML)
// Adding single handlers for your service here is fine, but once your
// service needs more than one handler, please extract them into a new
@@ -1366,6 +1368,10 @@ void RenderProcessHostImpl::OnUserMetricsRecordAction(
content::RecordComputedAction(action);
}
+void RenderProcessHostImpl::OnSyncIPCElapsedTime(const base::TimeDelta& delta) {
+ HISTOGRAM_TIMES("RendererSyncIPC.ElapsedTime", delta);
+}
+
void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size);
}

Powered by Google App Engine
This is Rietveld 408576698