| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 3231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3242 kBeginToFinishMax, kBeginToFinishBucketCount); | 3242 kBeginToFinishMax, kBeginToFinishBucketCount); |
| 3243 | 3243 |
| 3244 static bool use_cache_histogram2(FieldTrialList::Find("NewEviction") && | 3244 static bool use_cache_histogram2(FieldTrialList::Find("NewEviction") && |
| 3245 !FieldTrialList::Find("NewEviction")->group_name().empty()); | 3245 !FieldTrialList::Find("NewEviction")->group_name().empty()); |
| 3246 if (use_cache_histogram2) | 3246 if (use_cache_histogram2) |
| 3247 UMA_HISTOGRAM_CUSTOM_TIMES( | 3247 UMA_HISTOGRAM_CUSTOM_TIMES( |
| 3248 FieldTrial::MakeName("Renderer4.StartToFinish", "NewEviction").data(), | 3248 FieldTrial::MakeName("Renderer4.StartToFinish", "NewEviction").data(), |
| 3249 finish - start, kBeginToFinishMin, | 3249 finish - start, kBeginToFinishMin, |
| 3250 kBeginToFinishMax, kBeginToFinishBucketCount); | 3250 kBeginToFinishMax, kBeginToFinishBucketCount); |
| 3251 | 3251 |
| 3252 static bool use_async_tcp(FieldTrialList::Find("AsyncSlowStart") && |
| 3253 !FieldTrialList::Find("AsyncSlowStart")->group_name().empty()); |
| 3254 if (use_async_tcp) { |
| 3255 UMA_HISTOGRAM_CUSTOM_TIMES( |
| 3256 FieldTrial::MakeName("Renderer4.StartToFinish", |
| 3257 "AsyncSlowStart").data(), |
| 3258 finish - start, kBeginToFinishMin, |
| 3259 kBeginToFinishMax, kBeginToFinishBucketCount); |
| 3260 } |
| 3261 |
| 3252 UMA_HISTOGRAM_MEDIUM_TIMES("Renderer4.CommitToFinish", finish - commit); | 3262 UMA_HISTOGRAM_MEDIUM_TIMES("Renderer4.CommitToFinish", finish - commit); |
| 3253 | 3263 |
| 3254 if (!first_paint.is_null()) { | 3264 if (!first_paint.is_null()) { |
| 3255 UMA_HISTOGRAM_MEDIUM_TIMES( | 3265 UMA_HISTOGRAM_MEDIUM_TIMES( |
| 3256 "Renderer4.BeginToFirstPaint", first_paint - begin); | 3266 "Renderer4.BeginToFirstPaint", first_paint - begin); |
| 3257 UMA_HISTOGRAM_MEDIUM_TIMES( | 3267 UMA_HISTOGRAM_MEDIUM_TIMES( |
| 3258 "Renderer4.CommitToFirstPaint", first_paint - commit); | 3268 "Renderer4.CommitToFirstPaint", first_paint - commit); |
| 3259 } | 3269 } |
| 3260 | 3270 |
| 3261 if (!first_paint_after_load.is_null()) { | 3271 if (!first_paint_after_load.is_null()) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3323 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); | 3333 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); |
| 3324 } | 3334 } |
| 3325 | 3335 |
| 3326 void RenderView::Print(WebFrame* frame, bool script_initiated) { | 3336 void RenderView::Print(WebFrame* frame, bool script_initiated) { |
| 3327 DCHECK(frame); | 3337 DCHECK(frame); |
| 3328 if (print_helper_.get() == NULL) { | 3338 if (print_helper_.get() == NULL) { |
| 3329 print_helper_.reset(new PrintWebViewHelper(this)); | 3339 print_helper_.reset(new PrintWebViewHelper(this)); |
| 3330 } | 3340 } |
| 3331 print_helper_->Print(frame, script_initiated); | 3341 print_helper_->Print(frame, script_initiated); |
| 3332 } | 3342 } |
| OLD | NEW |