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

Unified Diff: extensions/renderer/i18n_custom_bindings.cc

Issue 2316093004: [Extensions] Add metrics for renderer sync IPCs performance (Closed)
Patch Set: Mark's Created 4 years, 3 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
« no previous file with comments | « chrome/renderer/extensions/tabs_custom_bindings.cc ('k') | extensions/renderer/runtime_custom_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/i18n_custom_bindings.cc
diff --git a/extensions/renderer/i18n_custom_bindings.cc b/extensions/renderer/i18n_custom_bindings.cc
index 961a31776edeab879b78ca448ecdac5f601179fb..7799d9d01a14917df75658b4d8434e471ba9d662 100644
--- a/extensions/renderer/i18n_custom_bindings.cc
+++ b/extensions/renderer/i18n_custom_bindings.cc
@@ -12,6 +12,7 @@
#include "base/bind.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
+#include "base/metrics/histogram_macros.h"
#include "content/public/child/v8_value_converter.h"
#include "content/public/renderer/render_frame.h"
#include "content/public/renderer/render_thread.h"
@@ -201,8 +202,11 @@ void I18NCustomBindings::GetL10nMessage(
L10nMessagesMap messages;
// A sync call to load message catalogs for current extension.
- render_frame->Send(
- new ExtensionHostMsg_GetMessageBundle(extension_id, &messages));
+ {
+ SCOPED_UMA_HISTOGRAM_TIMER("Extensions.SyncGetMessageBundle");
+ render_frame->Send(
+ new ExtensionHostMsg_GetMessageBundle(extension_id, &messages));
+ }
// Save messages we got.
ExtensionToL10nMessagesMap& l10n_messages_map =
« no previous file with comments | « chrome/renderer/extensions/tabs_custom_bindings.cc ('k') | extensions/renderer/runtime_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698