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

Unified Diff: chrome/renderer/page_load_histograms.cc

Issue 10985083: Upstreaming SpdyProxy-related switches, OTR logic, and histograms (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Alphabetized includes Created 8 years, 2 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/browser/ui/prefs/prefs_tab_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/page_load_histograms.cc
diff --git a/chrome/renderer/page_load_histograms.cc b/chrome/renderer/page_load_histograms.cc
index 85b45a096a98a9ec2d4bdbea4e5ced16dda23f83..a2c511d510f080065f0c0401748c7c9bf284e26a 100644
--- a/chrome/renderer/page_load_histograms.cc
+++ b/chrome/renderer/page_load_histograms.cc
@@ -4,10 +4,12 @@
#include "chrome/renderer/page_load_histograms.h"
+#include "base/command_line.h"
#include "base/logging.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
#include "base/time.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/common/extensions/url_pattern.h"
#include "chrome/renderer/chrome_content_renderer_client.h"
#include "chrome/renderer/prerender/prerender_helper.h"
@@ -351,6 +353,15 @@ void PageLoadHistograms::Dump(WebFrame* frame) {
}
}
+ if (document_state->was_fetched_via_proxy() &&
+ document_state->was_fetched_via_spdy() &&
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kSpdyProxyOrigin)) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "PLT.Abandoned_SpdyProxy", abandoned_page ? 1 : 0, 2);
+ PLT_HISTOGRAM("PLT.BeginToFinishDoc_SpdyProxy", begin_to_finish_doc);
+ PLT_HISTOGRAM("PLT.BeginToFinish_SpdyProxy", begin_to_finish_all_loads);
+ }
+
// Histograms to determine if prefetch & prerender has an impact on PLT.
static const bool prefetching_fieldtrial =
base::FieldTrialList::TrialExists("Prefetch");
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698