mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-29 00:32:35 +08:00
[Cleanup] Rename UMA_HISTOGRAM_SPARSE_SLOWLY to base::UmaHistogramSparse().
R=mark@chromium.org Bug: chromium:773850 Change-Id: Idef7b4c821dcac03e095d1400534ddf503a22423 Reviewed-on: https://chromium-review.googlesource.com/828530 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
7662fb087f
commit
344acadfdd
@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
#include "util/misc/metrics.h"
|
#include "util/misc/metrics.h"
|
||||||
|
|
||||||
|
#include "base/metrics/histogram_functions.h"
|
||||||
#include "base/metrics/histogram_macros.h"
|
#include "base/metrics/histogram_macros.h"
|
||||||
#include "base/metrics/sparse_histogram.h"
|
|
||||||
#include "build/build_config.h"
|
#include "build/build_config.h"
|
||||||
|
|
||||||
#if defined(OS_MACOSX)
|
#if defined(OS_MACOSX)
|
||||||
@ -91,8 +91,8 @@ void Metrics::ExceptionCaptureResult(CaptureResult result) {
|
|||||||
|
|
||||||
// static
|
// static
|
||||||
void Metrics::ExceptionCode(uint32_t exception_code) {
|
void Metrics::ExceptionCode(uint32_t exception_code) {
|
||||||
UMA_HISTOGRAM_SPARSE_SLOWLY("Crashpad.ExceptionCode." METRICS_OS_NAME,
|
base::UmaHistogramSparse("Crashpad.ExceptionCode." METRICS_OS_NAME,
|
||||||
static_cast<int32_t>(exception_code));
|
static_cast<int32_t>(exception_code));
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
@ -109,7 +109,7 @@ void Metrics::HandlerLifetimeMilestone(LifetimeMilestone milestone) {
|
|||||||
|
|
||||||
// static
|
// static
|
||||||
void Metrics::HandlerCrashed(uint32_t exception_code) {
|
void Metrics::HandlerCrashed(uint32_t exception_code) {
|
||||||
UMA_HISTOGRAM_SPARSE_SLOWLY(
|
base::UmaHistogramSparse(
|
||||||
"Crashpad.HandlerCrash.ExceptionCode." METRICS_OS_NAME,
|
"Crashpad.HandlerCrash.ExceptionCode." METRICS_OS_NAME,
|
||||||
static_cast<int32_t>(exception_code));
|
static_cast<int32_t>(exception_code));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user