summaryrefslogtreecommitdiff
path: root/chromium/components/browser_watcher/stability_metrics.cc
blob: 0ec6675db985c1bb6a4a9159f4f567cd2a2fd029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/browser_watcher/stability_metrics.h"

#include "base/metrics/histogram_macros.h"

namespace browser_watcher {

void LogCollectOnCrashEvent(CollectOnCrashEvent event) {
  UMA_HISTOGRAM_ENUMERATION("ActivityTracker.CollectCrash.Event", event,
                            CollectOnCrashEvent::kCollectOnCrashEventMax);
}

void LogStabilityRecordEvent(StabilityRecordEvent event) {
  UMA_HISTOGRAM_ENUMERATION("ActivityTracker.Record.Event", event,
                            StabilityRecordEvent::kStabilityRecordEventMax);
}

}  // namespace browser_watcher