extended_crash_reporting_metrics.cc 774 B

123456789101112131415161718192021
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/browser_watcher/extended_crash_reporting_metrics.h"
  5. #include "base/metrics/histogram_functions.h"
  6. namespace browser_watcher {
  7. void LogCollectOnCrashEvent(CollectOnCrashEvent event) {
  8. base::UmaHistogramEnumeration("ActivityTracker.CollectCrash.Event", event,
  9. CollectOnCrashEvent::kCollectOnCrashEventMax);
  10. }
  11. void LogActivityRecordEvent(ActivityRecordEvent event) {
  12. base::UmaHistogramEnumeration("ActivityTracker.Record.Event", event,
  13. ActivityRecordEvent::kActivityRecordEventMax);
  14. }
  15. } // namespace browser_watcher