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

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

Issue 16115002: Delete long-expired GlobalSdch field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 begin_to_finish_doc); 409 begin_to_finish_doc);
410 PLT_HISTOGRAM("PLT.BeginToFinish_ContentPrefetcherReferrer", 410 PLT_HISTOGRAM("PLT.BeginToFinish_ContentPrefetcherReferrer",
411 begin_to_finish_all_loads); 411 begin_to_finish_all_loads);
412 } 412 }
413 413
414 // Histograms to determine if SDCH has an impact. 414 // Histograms to determine if SDCH has an impact.
415 // TODO(jar): Consider removing per-link load types and the enumeration. 415 // TODO(jar): Consider removing per-link load types and the enumeration.
416 static const bool use_sdch_histogram = 416 static const bool use_sdch_histogram =
417 base::FieldTrialList::TrialExists("GlobalSdch"); 417 base::FieldTrialList::TrialExists("GlobalSdch");
418 if (use_sdch_histogram) { 418 if (use_sdch_histogram) {
419 UMA_HISTOGRAM_ENUMERATION( 419 UMA_HISTOGRAM_ENUMERATION("PLT.LoadType", load_type,
420 base::FieldTrial::MakeName("PLT.LoadType", "GlobalSdch"), 420 DocumentState::kLoadTypeMax);
421 load_type, DocumentState::kLoadTypeMax);
422 switch (load_type) { 421 switch (load_type) {
423 case DocumentState::NORMAL_LOAD: 422 case DocumentState::NORMAL_LOAD:
424 PLT_HISTOGRAM(base::FieldTrial::MakeName( 423 PLT_HISTOGRAM("PLT.BeginToFinish_NormalLoad",
jar (doing other things) 2013/05/28 18:35:02 You'll notice that this exact histogram is already
Alexei Svitkine (slow) 2013/05/28 18:48:58 Ah, you're absolutely right! Done.
425 "PLT.BeginToFinish_NormalLoad", "GlobalSdch"), 424 begin_to_finish_all_loads);
426 begin_to_finish_all_loads);
427 break; 425 break;
428 case DocumentState::LINK_LOAD_NORMAL: 426 case DocumentState::LINK_LOAD_NORMAL:
429 PLT_HISTOGRAM(base::FieldTrial::MakeName( 427 PLT_HISTOGRAM("PLT.BeginToFinish_LinkLoadNormal",
430 "PLT.BeginToFinish_LinkLoadNormal", "GlobalSdch"), 428 begin_to_finish_all_loads);
431 begin_to_finish_all_loads);
432 break; 429 break;
433 case DocumentState::LINK_LOAD_RELOAD: 430 case DocumentState::LINK_LOAD_RELOAD:
434 PLT_HISTOGRAM(base::FieldTrial::MakeName( 431 PLT_HISTOGRAM("PLT.BeginToFinish_LinkLoadReload",
435 "PLT.BeginToFinish_LinkLoadReload", "GlobalSdch"), 432 begin_to_finish_all_loads);
436 begin_to_finish_all_loads);
437 break; 433 break;
438 case DocumentState::LINK_LOAD_CACHE_STALE_OK: 434 case DocumentState::LINK_LOAD_CACHE_STALE_OK:
439 PLT_HISTOGRAM(base::FieldTrial::MakeName( 435 PLT_HISTOGRAM("PLT.BeginToFinish_LinkLoadStaleOk",
440 "PLT.BeginToFinish_LinkLoadStaleOk", "GlobalSdch"), 436 begin_to_finish_all_loads);
441 begin_to_finish_all_loads);
442 break; 437 break;
443 case DocumentState::LINK_LOAD_CACHE_ONLY: 438 case DocumentState::LINK_LOAD_CACHE_ONLY:
444 PLT_HISTOGRAM(base::FieldTrial::MakeName( 439 PLT_HISTOGRAM("PLT.BeginToFinish_LinkLoadCacheOnly",
445 "PLT.BeginToFinish_LinkLoadCacheOnly", "GlobalSdch"), 440 begin_to_finish_all_loads);
446 begin_to_finish_all_loads);
447 break; 441 break;
448 default: 442 default:
449 break; 443 break;
450 } 444 }
451 } 445 }
452 446
453 // TODO(mpcomplete): remove the extension-related histograms after we collect 447 // TODO(mpcomplete): remove the extension-related histograms after we collect
454 // enough data. http://crbug.com/100411 448 // enough data. http://crbug.com/100411
455 const bool use_adblock_histogram = 449 const bool use_adblock_histogram =
456 chrome::ChromeContentRendererClient::IsAdblockInstalled(); 450 chrome::ChromeContentRendererClient::IsAdblockInstalled();
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 743
750 DCHECK(document_state); 744 DCHECK(document_state);
751 DCHECK(ds); 745 DCHECK(ds);
752 GURL url(ds->request().url()); 746 GURL url(ds->request().url());
753 Time start = document_state->start_load_time(); 747 Time start = document_state->start_load_time();
754 Time finish = document_state->finish_load_time(); 748 Time finish = document_state->finish_load_time();
755 // TODO(mbelshe): should we log more stats? 749 // TODO(mbelshe): should we log more stats?
756 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms " 750 VLOG(1) << "PLT: " << (finish - start).InMilliseconds() << "ms "
757 << url.spec(); 751 << url.spec();
758 } 752 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698