OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file defines a service that collects information about the user | 5 // This file defines a service that collects information about the user |
6 // experience in order to help improve future versions of the app. | 6 // experience in order to help improve future versions of the app. |
7 | 7 |
8 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_H_ | 8 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_H_ |
9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_ | 9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_ |
10 | 10 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 void RecordBooleanPrefValue(const char* path, bool value); | 357 void RecordBooleanPrefValue(const char* path, bool value); |
358 | 358 |
359 // Returns a list of synthetic field trials that were active for the entire | 359 // Returns a list of synthetic field trials that were active for the entire |
360 // duration of the current log. | 360 // duration of the current log. |
361 void GetCurrentSyntheticFieldTrials( | 361 void GetCurrentSyntheticFieldTrials( |
362 std::vector<variations::ActiveGroupId>* synthetic_trials); | 362 std::vector<variations::ActiveGroupId>* synthetic_trials); |
363 | 363 |
364 // Creates a new MetricsLog instance with the given |log_type|. | 364 // Creates a new MetricsLog instance with the given |log_type|. |
365 scoped_ptr<MetricsLog> CreateLog(MetricsLog::LogType log_type); | 365 scoped_ptr<MetricsLog> CreateLog(MetricsLog::LogType log_type); |
366 | 366 |
| 367 // Records the current environment (system profile) in |log|. |
| 368 void RecordCurrentEnvironment(MetricsLog* log); |
| 369 |
367 // Record complete list of histograms into the current log. | 370 // Record complete list of histograms into the current log. |
368 // Called when we close a log. | 371 // Called when we close a log. |
369 void RecordCurrentHistograms(); | 372 void RecordCurrentHistograms(); |
370 | 373 |
371 // Record complete list of stability histograms into the current log, | 374 // Record complete list of stability histograms into the current log, |
372 // i.e., histograms with the |kUmaStabilityHistogramFlag| flag set. | 375 // i.e., histograms with the |kUmaStabilityHistogramFlag| flag set. |
373 void RecordCurrentStabilityHistograms(); | 376 void RecordCurrentStabilityHistograms(); |
374 | 377 |
375 // Manager for the various in-flight logs. | 378 // Manager for the various in-flight logs. |
376 MetricsLogManager log_manager_; | 379 MetricsLogManager log_manager_; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, | 466 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, |
464 PermutedEntropyCacheClearedWhenLowEntropyReset); | 467 PermutedEntropyCacheClearedWhenLowEntropyReset); |
465 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); | 468 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); |
466 | 469 |
467 DISALLOW_COPY_AND_ASSIGN(MetricsService); | 470 DISALLOW_COPY_AND_ASSIGN(MetricsService); |
468 }; | 471 }; |
469 | 472 |
470 } // namespace metrics | 473 } // namespace metrics |
471 | 474 |
472 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_ | 475 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_ |
OLD | NEW |