diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 16:56:58 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 16:56:58 +0000 |
commit | f929f2f2efb74ea2963862cc570bf543780a2f22 (patch) | |
tree | 1fa241f753c683fdfe4a32ff9f94f098017d04ac /chrome | |
parent | c978c8914d94f65d53d955097ddfcaf7f22ab522 (diff) | |
download | chromium_src-f929f2f2efb74ea2963862cc570bf543780a2f22.zip chromium_src-f929f2f2efb74ea2963862cc570bf543780a2f22.tar.gz chromium_src-f929f2f2efb74ea2963862cc570bf543780a2f22.tar.bz2 |
Remove most field trial uses of DNS impact test
The focus on DNS prefetching has moved to optimize primarilly the
RequestToFinish time in the renderer. As a result, I've removed most
of the modulations of the histogram names other than that focal
histogram. I've also extended the duration for RequestToFinish, and
enhanced its granularity, changing the name to RequestToFinish_L.
Dave: Please review the renderer histogram changes.
Will: Please review the network histogram changes. You can also suggest
any histograms that you think would be removed at this point.
r=davemoore,willchan
Review URL: http://codereview.chromium.org/126023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18283 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/render_view.cc | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index b982b26..be5f09d 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -655,7 +655,7 @@ void RenderView::OnNavigate(const ViewMsg_Navigate_Params& params) { // back/forward navigation event. if (!is_reload && !params.state.empty()) { // We must know the page ID of the page we are navigating back to. - DCHECK(params.page_id != -1); + DCHECK_NE(params.page_id, -1); main_frame->LoadHistoryState(params.state); } else { // Navigate to the given URL. @@ -668,7 +668,7 @@ void RenderView::OnNavigate(const ViewMsg_Navigate_Params& params) { cache_policy = WebRequestReloadIgnoringCacheData; } else { // A session history navigation should have been accompanied by state. - DCHECK(params.page_id == -1); + DCHECK_EQ(params.page_id, -1); if (main_frame->GetInViewSourceMode()) { cache_policy = WebRequestReturnCacheDataElseLoad; } else { @@ -2809,33 +2809,23 @@ void RenderView::DumpLoadHistograms() const { // Client side redirects will have no request time if (request_time.ToInternalValue() != 0) { - UMA_HISTOGRAM_MEDIUM_TIMES( - FieldTrial::MakeName("Renderer2.RequestToStart", "DnsImpact").data(), - request_to_start); - UMA_HISTOGRAM_MEDIUM_TIMES( - FieldTrial::MakeName("Renderer2.RequestToFinish", "DnsImpact").data(), - request_to_finish); + UMA_HISTOGRAM_MEDIUM_TIMES("Renderer2.RequestToStart", request_to_start); + UMA_HISTOGRAM_CLIPPED_TIMES( + FieldTrial::MakeName("Renderer2.RequestToFinish_L", "DnsImpact").data(), + request_to_finish, base::TimeDelta::FromMilliseconds(10), + base::TimeDelta::FromMinutes(10), 100); if (request_to_first_layout.ToInternalValue() >= 0) { - UMA_HISTOGRAM_MEDIUM_TIMES( - FieldTrial::MakeName("Renderer2.RequestToFirstLayout", - "DnsImpact").data(), + UMA_HISTOGRAM_MEDIUM_TIMES("Renderer2.RequestToFirstLayout", request_to_first_layout); } } - UMA_HISTOGRAM_MEDIUM_TIMES( - FieldTrial::MakeName("Renderer2.StartToFinishDoc", "DnsImpact").data(), - start_to_finish_doc); - UMA_HISTOGRAM_MEDIUM_TIMES( - FieldTrial::MakeName("Renderer2.FinishDocToFinish", "DnsImpact").data(), - finish_doc_to_finish); - UMA_HISTOGRAM_MEDIUM_TIMES( - FieldTrial::MakeName("Renderer2.StartToFinish", "DnsImpact").data(), - start_to_finish); + UMA_HISTOGRAM_MEDIUM_TIMES("Renderer2.StartToFinishDoc", start_to_finish_doc); + UMA_HISTOGRAM_MEDIUM_TIMES("Renderer2.FinishDocToFinish", + finish_doc_to_finish); + UMA_HISTOGRAM_MEDIUM_TIMES("Renderer2.StartToFinish", start_to_finish); if (start_to_first_layout.ToInternalValue() >= 0) { - UMA_HISTOGRAM_MEDIUM_TIMES( - FieldTrial::MakeName("Renderer2.StartToFirstLayout", - "DnsImpact").data(), - start_to_first_layout); + UMA_HISTOGRAM_MEDIUM_TIMES("Renderer2.StartToFirstLayout", + start_to_first_layout); } } |