admin
2023-03-07 8b06b1cbf112d55307ea8a6efe711db4e7506d89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Copyright 2016 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.
 
#ifndef MINI_CHROMIUM_BASE_METRICS_HISTOGRAM_MACROS_H_
#define MINI_CHROMIUM_BASE_METRICS_HISTOGRAM_MACROS_H_
 
// These are no-op stub versions of a subset of the macros from Chromium's
// base/metrics/histogram_macros.h. This allows us to instrument the Crashpad
// code as necessary, while not affecting out-of-Chromium builds.
 
#define UMA_HISTOGRAM_UNUSED(x) (void)(x)
 
#define UMA_HISTOGRAM_TIMES(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_MEDIUM_TIMES(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_LONG_TIMES(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_LONG_TIMES_100(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
  UMA_HISTOGRAM_UNUSED(name), \
  UMA_HISTOGRAM_UNUSED(sample), \
  UMA_HISTOGRAM_UNUSED(min), \
  UMA_HISTOGRAM_UNUSED(max), \
  UMA_HISTOGRAM_UNUSED(bucket_count)
 
#define UMA_HISTOGRAM_COUNTS(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_COUNTS_100(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_COUNTS_1000(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_COUNTS_10000(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
  UMA_HISTOGRAM_UNUSED(name), \
  UMA_HISTOGRAM_UNUSED(sample), \
  UMA_HISTOGRAM_UNUSED(min), \
  UMA_HISTOGRAM_UNUSED(max), \
  UMA_HISTOGRAM_UNUSED(bucket_count)
 
#define UMA_HISTOGRAM_MEMORY_KB(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_MEMORY_MB(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
#define UMA_HISTOGRAM_MEMORY_LARGE_MB(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
 
#define UMA_HISTOGRAM_PERCENTAGE(name, under_one_hundred) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(under_one_hundred)
 
#define UMA_HISTOGRAM_BOOLEAN(name, sample) \
  UMA_HISTOGRAM_UNUSED(name), UMA_HISTOGRAM_UNUSED(sample)
 
#define UMA_HISTOGRAM_ENUMERATION(name, sample, boundary_value) \
  UMA_HISTOGRAM_UNUSED(name), \
  UMA_HISTOGRAM_UNUSED(sample), \
  UMA_HISTOGRAM_UNUSED(boundary_value)
#define UMA_STABILITY_HISTOGRAM_ENUMERATION(name, sample, boundary_value) \
  UMA_HISTOGRAM_UNUSED(name), \
  UMA_HISTOGRAM_UNUSED(sample), \
  UMA_HISTOGRAM_UNUSED(boundary_value)
#define UMA_HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) \
  UMA_HISTOGRAM_UNUSED(name), \
  UMA_HISTOGRAM_UNUSED(sample), \
  UMA_HISTOGRAM_UNUSED(custom_ranges)
 
#endif  // MINI_CHROMIUM_BASE_METRICS_HISTOGRAM_MACROS_H_