diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 21:28:29 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 21:28:29 +0000 |
commit | 7a9b51f2274ba1732c5b80451346a4f2688365b5 (patch) | |
tree | 23dd1a68ecfcaf34394825eda8e48ad9ec5c5e6e /chrome/renderer/navigation_state.h | |
parent | 5901ab7c1e86520249f0ef2207db16f6ed713a59 (diff) | |
download | chromium_src-7a9b51f2274ba1732c5b80451346a4f2688365b5.zip chromium_src-7a9b51f2274ba1732c5b80451346a4f2688365b5.tar.gz chromium_src-7a9b51f2274ba1732c5b80451346a4f2688365b5.tar.bz2 |
- Added a new time marker for loadtimes: first_paint_after_load_time. Created new histograms
to expose it. Also made some new histograms that use a derived time: begin_time. This is
the request_time if the page was requested by a user action, start time otherwise.
Review URL: http://codereview.chromium.org/150010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/navigation_state.h')
-rw-r--r-- | chrome/renderer/navigation_state.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/chrome/renderer/navigation_state.h b/chrome/renderer/navigation_state.h index 46c17f3..0428f2a 100644 --- a/chrome/renderer/navigation_state.h +++ b/chrome/renderer/navigation_state.h @@ -86,7 +86,7 @@ class NavigationState : public WebKit::WebDataSource::ExtraData { finish_load_time_ = value; } - // The time that layout first ran after a new navigation. + // The time that painting first happened after a new navigation. const base::Time& first_paint_time() const { return first_paint_time_; } @@ -94,6 +94,22 @@ class NavigationState : public WebKit::WebDataSource::ExtraData { first_paint_time_ = value; } + // The time that painting first happened after the document finished loading. + const base::Time& first_paint_after_load_time() const { + return first_paint_after_load_time_; + } + void set_first_paint_after_load_time(const base::Time& value) { + 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_; } @@ -123,6 +139,7 @@ class NavigationState : public WebKit::WebDataSource::ExtraData { int32 pending_page_id) : transition_type_(transition_type), request_time_(request_time), + load_histograms_recorded_(false), request_committed_(false), is_content_initiated_(is_content_initiated), pending_page_id_(pending_page_id) { @@ -135,6 +152,8 @@ class NavigationState : public WebKit::WebDataSource::ExtraData { base::Time finish_document_load_time_; 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_; |