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

Side by Side Diff: components/metrics/metrics_service.h

Issue 612883003: Add a histogram to measure number of synthetic UMA trials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | components/metrics/metrics_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698