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

Unified Diff: third_party/WebKit/Source/core/loader/FrameLoader.cpp

Issue 2936723002: Report frequency of single page app navigations to UMA (Closed)
Patch Set: update histograms.xml Created 3 years, 6 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: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index 23b058dc70155aed38401d5d15f0860ebd8d6adb..d69ecc288c36b6ee998dd298be862b93e340a059 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -79,6 +79,7 @@
#include "core/probe/CoreProbes.h"
#include "core/svg/graphics/SVGImage.h"
#include "core/xml/parser/XMLDocumentParser.h"
+#include "platform/Histogram.h"
#include "platform/InstanceCounters.h"
#include "platform/PluginScriptForbiddenScope.h"
#include "platform/ScriptForbiddenScope.h"
@@ -484,6 +485,9 @@ void FrameLoader::UpdateForSameDocumentNavigation(
HistoryScrollRestorationType scroll_restoration_type,
FrameLoadType type,
Document* initiating_document) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "RendererScheduler.UpdateForSameDocumentNavigationCount", type,
+ FrameLoadType::kFrameLoadTypeCount);
Nate Chapin 2017/06/14 18:10:50 FrameLoadTypes might be overloaded. For example, F
tdresser 2017/06/14 18:30:52 Great question. The high level question we want t
Liquan (Max) Gu 2017/06/20 23:35:39 Done.
TRACE_EVENT1("blink", "FrameLoader::updateForSameDocumentNavigation", "url",
new_url.GetString().Ascii().data());

Powered by Google App Engine
This is Rietveld 408576698