From b02a1f687526c0d012b4a8f4215cfd0056f0718f Mon Sep 17 00:00:00 2001 From: "tonyg@chromium.org" Date: Thu, 11 Nov 2010 00:30:27 +0000 Subject: PLT updates. Fix a bug introduced by me in 65223. The boolean indicating whether histograms have been dumped must be on navigation_state instead of page_load_histograms. Introduce a histogram for the Web Timing page load time which measures the commit to the start/end of the load event. Also introduce two histograms for troubleshooting abandonment and missing starts. We will use these histograms temporarily for vetting these metrics. BUG=None TEST=None git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65738 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/navigation_state.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chrome/renderer/navigation_state.h') diff --git a/chrome/renderer/navigation_state.h b/chrome/renderer/navigation_state.h index 10eff0c..ab34b12 100644 --- a/chrome/renderer/navigation_state.h +++ b/chrome/renderer/navigation_state.h @@ -154,6 +154,12 @@ class NavigationState : public WebKit::WebDataSource::ExtraData { first_paint_after_load_time_ = value; } + // True iff the histograms for the associated frame have been dumped. + bool load_histograms_recorded() const { return load_histograms_recorded_; } + void set_load_histograms_recorded(bool value) { + load_histograms_recorded_ = value; + } + // True if we have already processed the "DidCommitLoad" event for this // request. Used by session history. bool request_committed() const { return request_committed_; } @@ -274,6 +280,7 @@ class NavigationState : public WebKit::WebDataSource::ExtraData { base::Time finish_load_time_; base::Time first_paint_time_; base::Time first_paint_after_load_time_; + bool load_histograms_recorded_; bool request_committed_; bool is_content_initiated_; int32 pending_page_id_; -- cgit v1.1