| OLD | NEW |
| 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 // FieldTrial is a class for handling details of statistical experiments | 5 // FieldTrial is a class for handling details of statistical experiments |
| 6 // performed by actual users in the field (i.e., in a shipped or beta product). | 6 // performed by actual users in the field (i.e., in a shipped or beta product). |
| 7 // All code is called exclusively on the UI thread currently. | 7 // All code is called exclusively on the UI thread currently. |
| 8 // | 8 // |
| 9 // The simplest example is an experiment to see whether one of two options | 9 // The simplest example is an experiment to see whether one of two options |
| 10 // produces "better" results across our user population. In that scenario, UMA | 10 // produces "better" results across our user population. In that scenario, UMA |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // Memory.RendererTotal // 100% of users still fill this histogram. | 68 // Memory.RendererTotal // 100% of users still fill this histogram. |
| 69 // Memory.RendererTotal_HighMem // 2% of users will fill this histogram. | 69 // Memory.RendererTotal_HighMem // 2% of users will fill this histogram. |
| 70 // Memory.RendererTotal_LowMem // 2% of users will fill this histogram. | 70 // Memory.RendererTotal_LowMem // 2% of users will fill this histogram. |
| 71 // Memory.RendererTotal_StandardMem // 96% of users will fill this histogram. | 71 // Memory.RendererTotal_StandardMem // 96% of users will fill this histogram. |
| 72 | 72 |
| 73 //------------------------------------------------------------------------------ | 73 //------------------------------------------------------------------------------ |
| 74 | 74 |
| 75 #ifndef BASE_METRICS_FIELD_TRIAL_H_ | 75 #ifndef BASE_METRICS_FIELD_TRIAL_H_ |
| 76 #define BASE_METRICS_FIELD_TRIAL_H_ | 76 #define BASE_METRICS_FIELD_TRIAL_H_ |
| 77 #pragma once | |
| 78 | 77 |
| 79 #include <map> | 78 #include <map> |
| 80 #include <string> | 79 #include <string> |
| 81 #include <vector> | 80 #include <vector> |
| 82 | 81 |
| 83 #include "base/base_export.h" | 82 #include "base/base_export.h" |
| 84 #include "base/gtest_prod_util.h" | 83 #include "base/gtest_prod_util.h" |
| 85 #include "base/memory/ref_counted.h" | 84 #include "base/memory/ref_counted.h" |
| 86 #include "base/observer_list_threadsafe.h" | 85 #include "base/observer_list_threadsafe.h" |
| 87 #include "base/synchronization/lock.h" | 86 #include "base/synchronization/lock.h" |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 | 434 |
| 436 // List of observers to be notified when a group is selected for a FieldTrial. | 435 // List of observers to be notified when a group is selected for a FieldTrial. |
| 437 scoped_refptr<ObserverListThreadSafe<Observer> > observer_list_; | 436 scoped_refptr<ObserverListThreadSafe<Observer> > observer_list_; |
| 438 | 437 |
| 439 DISALLOW_COPY_AND_ASSIGN(FieldTrialList); | 438 DISALLOW_COPY_AND_ASSIGN(FieldTrialList); |
| 440 }; | 439 }; |
| 441 | 440 |
| 442 } // namespace base | 441 } // namespace base |
| 443 | 442 |
| 444 #endif // BASE_METRICS_FIELD_TRIAL_H_ | 443 #endif // BASE_METRICS_FIELD_TRIAL_H_ |
| OLD | NEW |