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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 10246001: VLOG -> DVLOG for uniformity field trials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | 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/browser/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 // Probability per group remains constant for all uniformity trials, what 1068 // Probability per group remains constant for all uniformity trials, what
1069 // changes is the probability divisor. 1069 // changes is the probability divisor.
1070 static const base::FieldTrial::Probability kProbabilityPerGroup = 1; 1070 static const base::FieldTrial::Probability kProbabilityPerGroup = 1;
1071 for (size_t i = 0; i < arraysize(trial_sizes); ++i) { 1071 for (size_t i = 0; i < arraysize(trial_sizes); ++i) {
1072 const base::FieldTrial::Probability divisor = trial_sizes[i]; 1072 const base::FieldTrial::Probability divisor = trial_sizes[i];
1073 1073
1074 const int group_percent = 100 / trial_sizes[i]; 1074 const int group_percent = 100 / trial_sizes[i];
1075 const std::string trial_name = 1075 const std::string trial_name =
1076 StringPrintf("UMA-Uniformity-Trial-%d-Percent", group_percent); 1076 StringPrintf("UMA-Uniformity-Trial-%d-Percent", group_percent);
1077 1077
1078 VLOG(1) << "Trial name = " << trial_name; 1078 DVLOG(1) << "Trial name = " << trial_name;
1079 1079
1080 scoped_refptr<base::FieldTrial> trial( 1080 scoped_refptr<base::FieldTrial> trial(
1081 base::FieldTrialList::FactoryGetFieldTrial( 1081 base::FieldTrialList::FactoryGetFieldTrial(
1082 trial_name, divisor, "default", 2015, 1, 1, NULL)); 1082 trial_name, divisor, "default", 2015, 1, 1, NULL));
1083 // Loop starts with group 1 because the field trial automatically creates a 1083 // Loop starts with group 1 because the field trial automatically creates a
1084 // default group, which would be group 0. 1084 // default group, which would be group 0.
1085 for (int group_number = 1; group_number < trial_sizes[i]; ++group_number) { 1085 for (int group_number = 1; group_number < trial_sizes[i]; ++group_number) {
1086 const std::string group_name = StringPrintf("group_%02d", group_number); 1086 const std::string group_name = StringPrintf("group_%02d", group_number);
1087 VLOG(1) << " Group name = " << group_name; 1087 DVLOG(1) << " Group name = " << group_name;
1088 trial->AppendGroup(group_name, kProbabilityPerGroup); 1088 trial->AppendGroup(group_name, kProbabilityPerGroup);
1089 } 1089 }
1090 } 1090 }
1091 } 1091 }
1092 1092
1093 // ChromeBrowserMainParts: |SetupMetricsAndFieldTrials()| related -------------- 1093 // ChromeBrowserMainParts: |SetupMetricsAndFieldTrials()| related --------------
1094 1094
1095 void ChromeBrowserMainParts::SetupFieldTrials(bool metrics_recording_enabled, 1095 void ChromeBrowserMainParts::SetupFieldTrials(bool metrics_recording_enabled,
1096 bool proxy_policy_is_set) { 1096 bool proxy_policy_is_set) {
1097 // Note: make sure to call ConnectionFieldTrial() before 1097 // Note: make sure to call ConnectionFieldTrial() before
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 if (base::win::GetVersion() <= base::win::VERSION_XP) 2012 if (base::win::GetVersion() <= base::win::VERSION_XP)
2013 uma_name += "_XP"; 2013 uma_name += "_XP";
2014 2014
2015 uma_name += "_PreRead_"; 2015 uma_name += "_PreRead_";
2016 uma_name += pre_read_percentage; 2016 uma_name += pre_read_percentage;
2017 AddPreReadHistogramTime(uma_name.c_str(), time); 2017 AddPreReadHistogramTime(uma_name.c_str(), time);
2018 } 2018 }
2019 #endif 2019 #endif
2020 #endif 2020 #endif
2021 } 2021 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698