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

Side by Side Diff: chrome/renderer/page_load_histograms.cc

Issue 1363673004: [DRP] Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/page_load_histograms.h" 5 #include "chrome/renderer/page_load_histograms.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/metrics/field_trial.h" 12 #include "base/metrics/field_trial.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_split.h" 15 #include "base/strings/string_split.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/renderer/chrome_content_renderer_client.h" 21 #include "chrome/renderer/chrome_content_renderer_client.h"
22 #include "chrome/renderer/searchbox/search_bouncer.h" 22 #include "chrome/renderer/searchbox/search_bouncer.h"
23 #include "components/data_reduction_proxy/content/common/data_reduction_proxy_me ssages.h" 23 #include "components/data_reduction_proxy/content/common/data_reduction_proxy_me ssages.h"
24 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
24 #include "content/public/common/content_constants.h" 25 #include "content/public/common/content_constants.h"
25 #include "content/public/renderer/document_state.h" 26 #include "content/public/renderer/document_state.h"
27 #include "content/public/renderer/render_frame.h"
26 #include "content/public/renderer/render_thread.h" 28 #include "content/public/renderer/render_thread.h"
27 #include "content/public/renderer/render_view.h" 29 #include "content/public/renderer/render_view.h"
28 #include "extensions/common/url_pattern.h" 30 #include "extensions/common/url_pattern.h"
29 #include "net/base/url_util.h" 31 #include "net/base/url_util.h"
30 #include "net/http/http_response_headers.h" 32 #include "net/http/http_response_headers.h"
31 #include "third_party/WebKit/public/platform/WebURLRequest.h" 33 #include "third_party/WebKit/public/platform/WebURLRequest.h"
32 #include "third_party/WebKit/public/platform/WebURLResponse.h" 34 #include "third_party/WebKit/public/platform/WebURLResponse.h"
33 #include "third_party/WebKit/public/web/WebDocument.h" 35 #include "third_party/WebKit/public/web/WebDocument.h"
34 #include "third_party/WebKit/public/web/WebFrame.h" 36 #include "third_party/WebKit/public/web/WebFrame.h"
35 #include "third_party/WebKit/public/web/WebPerformance.h" 37 #include "third_party/WebKit/public/web/WebPerformance.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 if (!base::StringToInt(value, &experiment_id)) 214 if (!base::StringToInt(value, &experiment_id))
213 return kNoExperiment; 215 return kNoExperiment;
214 if (0 < experiment_id && experiment_id <= kMaxExperimentID) 216 if (0 < experiment_id && experiment_id <= kMaxExperimentID)
215 return experiment_id; 217 return experiment_id;
216 return kNoExperiment; 218 return kNoExperiment;
217 } 219 }
218 220
219 void DumpHistograms(const WebPerformance& performance, 221 void DumpHistograms(const WebPerformance& performance,
220 DocumentState* document_state, 222 DocumentState* document_state,
221 bool data_reduction_proxy_was_used, 223 bool data_reduction_proxy_was_used,
222 data_reduction_proxy::LoFiStatus lofi_status, 224 bool lofi_active_for_page, // LoFi was used, unless part of
225 // the control group.
223 bool came_from_websearch, 226 bool came_from_websearch,
224 int websearch_chrome_joint_experiment_id, 227 int websearch_chrome_joint_experiment_id,
225 bool is_preview, 228 bool is_preview,
226 URLPattern::SchemeMasks scheme_type) { 229 URLPattern::SchemeMasks scheme_type) {
227 // This function records new histograms based on the Navigation Timing 230 // This function records new histograms based on the Navigation Timing
228 // records. As such, the histograms should not depend on the deprecated timing 231 // records. As such, the histograms should not depend on the deprecated timing
229 // information collected in DocumentState. However, here for some reason we 232 // information collected in DocumentState. However, here for some reason we
230 // check if document_state->request_time() is null. TODO(ppi): find out why 233 // check if document_state->request_time() is null. TODO(ppi): find out why
231 // and remove DocumentState from the parameter list. 234 // and remove DocumentState from the parameter list.
232 Time request = document_state->request_time(); 235 Time request = document_state->request_time();
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 load_event_end - navigation_start, 407 load_event_end - navigation_start,
405 came_from_websearch, 408 came_from_websearch,
406 websearch_chrome_joint_experiment_id, 409 websearch_chrome_joint_experiment_id,
407 is_preview); 410 is_preview);
408 PLT_HISTOGRAM_WITH_GWS_VARIANT("PLT.PT_StartToFinish", 411 PLT_HISTOGRAM_WITH_GWS_VARIANT("PLT.PT_StartToFinish",
409 load_event_end - request_start, 412 load_event_end - request_start,
410 came_from_websearch, 413 came_from_websearch,
411 websearch_chrome_joint_experiment_id, 414 websearch_chrome_joint_experiment_id,
412 is_preview); 415 is_preview);
413 if (data_reduction_proxy_was_used) { 416 if (data_reduction_proxy_was_used) {
417 // TODO: Move these repetitive cases into an anonymous function.
Lei Zhang 2015/10/17 00:40:38 TODO(username) ?
megjablon 2015/10/19 19:44:21 Done.
418 bool in_lofi_enabled_group =
419 data_reduction_proxy::params::IsIncludedInLoFiEnabledFieldTrial();
420 bool in_lofi_control_group =
421 data_reduction_proxy::params::IsIncludedInLoFiControlFieldTrial();
414 if ((scheme_type & URLPattern::SCHEME_HTTPS) == 0) { 422 if ((scheme_type & URLPattern::SCHEME_HTTPS) == 0) {
415 PLT_HISTOGRAM("PLT.PT_BeginToFinish_DataReductionProxy", 423 PLT_HISTOGRAM("PLT.PT_BeginToFinish_DataReductionProxy",
416 load_event_end - begin); 424 load_event_end - begin);
417 PLT_HISTOGRAM("PLT.PT_CommitToFinish_DataReductionProxy", 425 PLT_HISTOGRAM("PLT.PT_CommitToFinish_DataReductionProxy",
418 load_event_end - response_start); 426 load_event_end - response_start);
419 PLT_HISTOGRAM("PLT.PT_RequestToFinish_DataReductionProxy", 427 PLT_HISTOGRAM("PLT.PT_RequestToFinish_DataReductionProxy",
420 load_event_end - navigation_start); 428 load_event_end - navigation_start);
421 PLT_HISTOGRAM("PLT.PT_StartToFinish_DataReductionProxy", 429 PLT_HISTOGRAM("PLT.PT_StartToFinish_DataReductionProxy",
422 load_event_end - request_start); 430 load_event_end - request_start);
423 if (lofi_status == data_reduction_proxy::LOFI_STATUS_ACTIVE) { 431 if (lofi_active_for_page && in_lofi_enabled_group) {
424 PLT_HISTOGRAM("PLT.PT_BeginToFinish_DataReductionProxy_AutoLoFiOn", 432 PLT_HISTOGRAM("PLT.PT_BeginToFinish_DataReductionProxy_AutoLoFiOn",
425 load_event_end - begin); 433 load_event_end - begin);
426 PLT_HISTOGRAM("PLT.PT_CommitToFinish_DataReductionProxy_AutoLoFiOn", 434 PLT_HISTOGRAM("PLT.PT_CommitToFinish_DataReductionProxy_AutoLoFiOn",
427 load_event_end - response_start); 435 load_event_end - response_start);
428 PLT_HISTOGRAM("PLT.PT_RequestToFinish_DataReductionProxy_AutoLoFiOn", 436 PLT_HISTOGRAM("PLT.PT_RequestToFinish_DataReductionProxy_AutoLoFiOn",
429 load_event_end - navigation_start); 437 load_event_end - navigation_start);
430 PLT_HISTOGRAM("PLT.PT_StartToFinish_DataReductionProxy_AutoLoFiOn", 438 PLT_HISTOGRAM("PLT.PT_StartToFinish_DataReductionProxy_AutoLoFiOn",
431 load_event_end - request_start); 439 load_event_end - request_start);
432 if (!first_paint.is_null()) { 440 if (!first_paint.is_null()) {
433 PLT_HISTOGRAM("PLT.BeginToFirstPaint_DataReductionProxy_AutoLoFiOn", 441 PLT_HISTOGRAM("PLT.BeginToFirstPaint_DataReductionProxy_AutoLoFiOn",
434 first_paint - begin); 442 first_paint - begin);
435 } 443 }
436 } else if (lofi_status == 444 } else if (lofi_active_for_page && in_lofi_control_group) {
437 data_reduction_proxy::LOFI_STATUS_ACTIVE_CONTROL) {
438 PLT_HISTOGRAM("PLT.PT_BeginToFinish_DataReductionProxy_AutoLoFiOff", 445 PLT_HISTOGRAM("PLT.PT_BeginToFinish_DataReductionProxy_AutoLoFiOff",
439 load_event_end - begin); 446 load_event_end - begin);
440 PLT_HISTOGRAM("PLT.PT_CommitToFinish_DataReductionProxy_AutoLoFiOff", 447 PLT_HISTOGRAM("PLT.PT_CommitToFinish_DataReductionProxy_AutoLoFiOff",
441 load_event_end - response_start); 448 load_event_end - response_start);
442 PLT_HISTOGRAM("PLT.PT_RequestToFinish_DataReductionProxy_AutoLoFiOff", 449 PLT_HISTOGRAM("PLT.PT_RequestToFinish_DataReductionProxy_AutoLoFiOff",
443 load_event_end - navigation_start); 450 load_event_end - navigation_start);
444 PLT_HISTOGRAM("PLT.PT_StartToFinish_DataReductionProxy_AutoLoFiOff", 451 PLT_HISTOGRAM("PLT.PT_StartToFinish_DataReductionProxy_AutoLoFiOff",
445 load_event_end - request_start); 452 load_event_end - request_start);
446 if (!first_paint.is_null()) { 453 if (!first_paint.is_null()) {
447 PLT_HISTOGRAM( 454 PLT_HISTOGRAM(
448 "PLT.BeginToFirstPaint_DataReductionProxy_AutoLoFiOff", 455 "PLT.BeginToFirstPaint_DataReductionProxy_AutoLoFiOff",
449 first_paint - begin); 456 first_paint - begin);
450 } 457 }
451 } 458 }
452 } else { 459 } else {
453 PLT_HISTOGRAM("PLT.PT_BeginToFinish_HTTPS_DataReductionProxy", 460 PLT_HISTOGRAM("PLT.PT_BeginToFinish_HTTPS_DataReductionProxy",
454 load_event_end - begin); 461 load_event_end - begin);
455 PLT_HISTOGRAM("PLT.PT_CommitToFinish_HTTPS_DataReductionProxy", 462 PLT_HISTOGRAM("PLT.PT_CommitToFinish_HTTPS_DataReductionProxy",
456 load_event_end - response_start); 463 load_event_end - response_start);
457 PLT_HISTOGRAM("PLT.PT_RequestToFinish_HTTPS_DataReductionProxy", 464 PLT_HISTOGRAM("PLT.PT_RequestToFinish_HTTPS_DataReductionProxy",
458 load_event_end - navigation_start); 465 load_event_end - navigation_start);
459 PLT_HISTOGRAM("PLT.PT_StartToFinish_HTTPS_DataReductionProxy", 466 PLT_HISTOGRAM("PLT.PT_StartToFinish_HTTPS_DataReductionProxy",
460 load_event_end - request_start); 467 load_event_end - request_start);
461 if (lofi_status == data_reduction_proxy::LOFI_STATUS_ACTIVE) { 468 if (lofi_active_for_page && in_lofi_enabled_group) {
462 PLT_HISTOGRAM( 469 PLT_HISTOGRAM(
463 "PLT.PT_BeginToFinish_HTTPS_DataReductionProxy_AutoLoFiOn", 470 "PLT.PT_BeginToFinish_HTTPS_DataReductionProxy_AutoLoFiOn",
464 load_event_end - begin); 471 load_event_end - begin);
465 PLT_HISTOGRAM( 472 PLT_HISTOGRAM(
466 "PLT.PT_CommitToFinish_HTTPS_DataReductionProxy_AutoLoFiOn", 473 "PLT.PT_CommitToFinish_HTTPS_DataReductionProxy_AutoLoFiOn",
467 load_event_end - response_start); 474 load_event_end - response_start);
468 PLT_HISTOGRAM( 475 PLT_HISTOGRAM(
469 "PLT.PT_RequestToFinish_HTTPS_DataReductionProxy_AutoLoFiOn", 476 "PLT.PT_RequestToFinish_HTTPS_DataReductionProxy_AutoLoFiOn",
470 load_event_end - navigation_start); 477 load_event_end - navigation_start);
471 PLT_HISTOGRAM( 478 PLT_HISTOGRAM(
472 "PLT.PT_StartToFinish_HTTPS_DataReductionProxy_AutoLoFiOn", 479 "PLT.PT_StartToFinish_HTTPS_DataReductionProxy_AutoLoFiOn",
473 load_event_end - request_start); 480 load_event_end - request_start);
474 if (!first_paint.is_null()) { 481 if (!first_paint.is_null()) {
475 PLT_HISTOGRAM( 482 PLT_HISTOGRAM(
476 "PLT.BeginToFirstPaint_HTTPS_DataReductionProxy_AutoLoFiOn", 483 "PLT.BeginToFirstPaint_HTTPS_DataReductionProxy_AutoLoFiOn",
477 first_paint - begin); 484 first_paint - begin);
478 } 485 }
479 } else if (lofi_status == 486 } else if (lofi_active_for_page && in_lofi_control_group) {
480 data_reduction_proxy::LOFI_STATUS_ACTIVE_CONTROL) {
481 PLT_HISTOGRAM( 487 PLT_HISTOGRAM(
482 "PLT.PT_BeginToFinish_HTTPS_DataReductionProxy_AutoLoFiOff", 488 "PLT.PT_BeginToFinish_HTTPS_DataReductionProxy_AutoLoFiOff",
483 load_event_end - begin); 489 load_event_end - begin);
484 PLT_HISTOGRAM( 490 PLT_HISTOGRAM(
485 "PLT.PT_CommitToFinish_HTTPS_DataReductionProxy_AutoLoFiOff", 491 "PLT.PT_CommitToFinish_HTTPS_DataReductionProxy_AutoLoFiOff",
486 load_event_end - response_start); 492 load_event_end - response_start);
487 PLT_HISTOGRAM( 493 PLT_HISTOGRAM(
488 "PLT.PT_RequestToFinish_HTTPS_DataReductionProxy_AutoLoFiOff", 494 "PLT.PT_RequestToFinish_HTTPS_DataReductionProxy_AutoLoFiOff",
489 load_event_end - navigation_start); 495 load_event_end - navigation_start);
490 PLT_HISTOGRAM( 496 PLT_HISTOGRAM(
(...skipping 26 matching lines...) Expand all
517 } 523 }
518 } 524 }
519 } 525 }
520 if (!dom_content_loaded_start.is_null()) { 526 if (!dom_content_loaded_start.is_null()) {
521 PLT_HISTOGRAM_WITH_GWS_VARIANT("PLT.PT_RequestToDomContentLoaded", 527 PLT_HISTOGRAM_WITH_GWS_VARIANT("PLT.PT_RequestToDomContentLoaded",
522 dom_content_loaded_start - navigation_start, 528 dom_content_loaded_start - navigation_start,
523 came_from_websearch, 529 came_from_websearch,
524 websearch_chrome_joint_experiment_id, 530 websearch_chrome_joint_experiment_id,
525 is_preview); 531 is_preview);
526 if (data_reduction_proxy_was_used) { 532 if (data_reduction_proxy_was_used) {
533 bool in_lofi_enabled_group =
534 data_reduction_proxy::params::IsIncludedInLoFiEnabledFieldTrial();
535 bool in_lofi_control_group =
536 data_reduction_proxy::params::IsIncludedInLoFiControlFieldTrial();
527 if ((scheme_type & URLPattern::SCHEME_HTTPS) == 0) { 537 if ((scheme_type & URLPattern::SCHEME_HTTPS) == 0) {
528 PLT_HISTOGRAM("PLT.PT_RequestToDomContentLoaded_DataReductionProxy", 538 PLT_HISTOGRAM("PLT.PT_RequestToDomContentLoaded_DataReductionProxy",
529 dom_content_loaded_start - navigation_start); 539 dom_content_loaded_start - navigation_start);
530 if (lofi_status == data_reduction_proxy::LOFI_STATUS_ACTIVE) { 540 if (lofi_active_for_page && in_lofi_enabled_group) {
531 PLT_HISTOGRAM( 541 PLT_HISTOGRAM(
532 "PLT.PT_RequestToDomContentLoaded_DataReductionProxy_AutoLoFiOn", 542 "PLT.PT_RequestToDomContentLoaded_DataReductionProxy_AutoLoFiOn",
533 dom_content_loaded_start - navigation_start); 543 dom_content_loaded_start - navigation_start);
534 } else if (lofi_status == 544 } else if (lofi_active_for_page && in_lofi_control_group) {
535 data_reduction_proxy::LOFI_STATUS_ACTIVE_CONTROL) {
536 PLT_HISTOGRAM( 545 PLT_HISTOGRAM(
537 "PLT.PT_RequestToDomContentLoaded_DataReductionProxy_AutoLoFiOff", 546 "PLT.PT_RequestToDomContentLoaded_DataReductionProxy_AutoLoFiOff",
538 dom_content_loaded_start - navigation_start); 547 dom_content_loaded_start - navigation_start);
539 } 548 }
540 } else { 549 } else {
541 PLT_HISTOGRAM( 550 PLT_HISTOGRAM(
542 "PLT.PT_RequestToDomContentLoaded_HTTPS_DataReductionProxy", 551 "PLT.PT_RequestToDomContentLoaded_HTTPS_DataReductionProxy",
543 dom_content_loaded_start - navigation_start); 552 dom_content_loaded_start - navigation_start);
544 if (lofi_status == data_reduction_proxy::LOFI_STATUS_ACTIVE) { 553 if (lofi_active_for_page && in_lofi_enabled_group) {
545 PLT_HISTOGRAM( 554 PLT_HISTOGRAM(
546 "PLT.PT_RequestToDomContentLoaded_HTTPS_DataReductionProxy_" 555 "PLT.PT_RequestToDomContentLoaded_HTTPS_DataReductionProxy_"
547 "AutoLoFiOn", 556 "AutoLoFiOn",
548 dom_content_loaded_start - navigation_start); 557 dom_content_loaded_start - navigation_start);
549 } else if (lofi_status == 558 } else if (lofi_active_for_page && in_lofi_control_group) {
550 data_reduction_proxy::LOFI_STATUS_ACTIVE_CONTROL) {
551 PLT_HISTOGRAM( 559 PLT_HISTOGRAM(
552 "PLT.PT_RequestToDomContentLoaded_HTTPS_DataReductionProxy_" 560 "PLT.PT_RequestToDomContentLoaded_HTTPS_DataReductionProxy_"
553 "AutoLoFiOff", 561 "AutoLoFiOff",
554 dom_content_loaded_start - navigation_start); 562 dom_content_loaded_start - navigation_start);
555 } 563 }
556 } 564 }
557 } 565 }
558 } 566 }
559 PLT_HISTOGRAM_WITH_GWS_VARIANT("PLT.PT_BeginToCommit", 567 PLT_HISTOGRAM_WITH_GWS_VARIANT("PLT.PT_BeginToCommit",
560 response_start - begin, 568 response_start - begin,
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 if (!ShouldDump(frame)) 879 if (!ShouldDump(frame))
872 return; 880 return;
873 881
874 URLPattern::SchemeMasks scheme_type = 882 URLPattern::SchemeMasks scheme_type =
875 GetSupportedSchemeType(frame->document().url()); 883 GetSupportedSchemeType(frame->document().url());
876 884
877 DocumentState* document_state = 885 DocumentState* document_state =
878 DocumentState::FromDataSource(frame->dataSource()); 886 DocumentState::FromDataSource(frame->dataSource());
879 887
880 bool data_reduction_proxy_was_used = false; 888 bool data_reduction_proxy_was_used = false;
881 data_reduction_proxy::LoFiStatus lofi_status =
882 data_reduction_proxy::LOFI_STATUS_TEMPORARILY_OFF;
883 if (!document_state->proxy_server().IsEmpty()) { 889 if (!document_state->proxy_server().IsEmpty()) {
884 bool handled = 890 bool handled =
885 Send(new DataReductionProxyViewHostMsg_DataReductionProxyStatus( 891 Send(new DataReductionProxyViewHostMsg_IsDataReductionProxy(
886 document_state->proxy_server(), &data_reduction_proxy_was_used, 892 document_state->proxy_server(), &data_reduction_proxy_was_used));
887 &lofi_status));
888 // If the IPC call is not handled, then |data_reduction_proxy_was_used| 893 // If the IPC call is not handled, then |data_reduction_proxy_was_used|
889 // should remain |false|. 894 // should remain |false|.
890 DCHECK(handled || !data_reduction_proxy_was_used); 895 DCHECK(handled || !data_reduction_proxy_was_used);
891 } 896 }
892 897
893 bool came_from_websearch = 898 bool came_from_websearch =
894 IsFromGoogleSearchResult(frame->document().url(), 899 IsFromGoogleSearchResult(frame->document().url(),
895 GURL(frame->document().referrer())); 900 GURL(frame->document().referrer()));
896 int websearch_chrome_joint_experiment_id = kNoExperiment; 901 int websearch_chrome_joint_experiment_id = kNoExperiment;
897 bool is_preview = false; 902 bool is_preview = false;
898 if (came_from_websearch) { 903 if (came_from_websearch) {
899 websearch_chrome_joint_experiment_id = 904 websearch_chrome_joint_experiment_id =
900 GetQueryStringBasedExperiment(GURL(frame->document().referrer())); 905 GetQueryStringBasedExperiment(GURL(frame->document().referrer()));
901 is_preview = ViaHeaderContains(frame, "1.1 Google Instant Proxy Preview"); 906 is_preview = ViaHeaderContains(frame, "1.1 Google Instant Proxy Preview");
902 } 907 }
903 908
904 MaybeDumpFirstLayoutHistograms(); 909 MaybeDumpFirstLayoutHistograms();
905 910
906 // Metrics based on the timing information recorded for the Navigation Timing 911 // Metrics based on the timing information recorded for the Navigation Timing
907 // API - http://www.w3.org/TR/navigation-timing/. 912 // API - http://www.w3.org/TR/navigation-timing/.
908 DumpHistograms(frame->performance(), document_state, 913 DumpHistograms(
909 data_reduction_proxy_was_used, lofi_status, 914 frame->performance(), document_state, data_reduction_proxy_was_used,
910 came_from_websearch, websearch_chrome_joint_experiment_id, 915 false /* TODO: render_frame->IsUsingLoFi() */, came_from_websearch,
911 is_preview, scheme_type); 916 websearch_chrome_joint_experiment_id, is_preview, scheme_type);
912 917
913 // Old metrics based on the timing information stored in DocumentState. These 918 // Old metrics based on the timing information stored in DocumentState. These
914 // are deprecated and should go away. 919 // are deprecated and should go away.
915 DumpDeprecatedHistograms(frame->performance(), document_state, 920 DumpDeprecatedHistograms(frame->performance(), document_state,
916 data_reduction_proxy_was_used, 921 data_reduction_proxy_was_used,
917 came_from_websearch, 922 came_from_websearch,
918 websearch_chrome_joint_experiment_id, 923 websearch_chrome_joint_experiment_id,
919 is_preview, 924 is_preview,
920 scheme_type); 925 scheme_type);
921 926
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 1025
1021 DCHECK(document_state); 1026 DCHECK(document_state);
1022 DCHECK(ds); 1027 DCHECK(ds);
1023 GURL url(ds->request().url()); 1028 GURL url(ds->request().url());
1024 Time start = document_state->start_load_time(); 1029 Time start = document_state->start_load_time();
1025 Time finish = document_state->finish_load_time(); 1030 Time finish = document_state->finish_load_time();
1026 // TODO(mbelshe): should we log more stats? 1031 // TODO(mbelshe): should we log more stats?
1027 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " 1032 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms "
1028 << url.spec(); 1033 << url.spec();
1029 } 1034 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698