ios: Fix MissingIntermediateDumpKey and InvalidIntermediateDumpKeySize histogram.

The actual number of enums that will be recorded is approx ~75.

Bug: crashpad: 31
Change-Id: If33671c7627d6e55e94c86308c8482711e33cef4
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3035823
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
This commit is contained in:
Justin Cohen 2021-07-16 15:23:48 -04:00 committed by Crashpad LUCI CQ
parent 78bcb55e1c
commit 7451893cd8

View File

@ -114,17 +114,15 @@ void Metrics::HandlerCrashed(uint32_t exception_code) {
// static
void Metrics::MissingIntermediateDumpKey(
const internal::IntermediateDumpKey& key) {
UMA_HISTOGRAM_ENUMERATION("Crashpad.IntermediateDump.Reader.MissingKey",
key,
internal::IntermediateDumpKey::kMaxValue);
base::UmaHistogramSparse("Crashpad.IntermediateDump.Reader.MissingKey",
static_cast<uint16_t>(key));
}
// static
void Metrics::InvalidIntermediateDumpKeySize(
const internal::IntermediateDumpKey& key) {
UMA_HISTOGRAM_ENUMERATION("Crashpad.IntermediateDump.Reader.InvalidKeySize",
key,
internal::IntermediateDumpKey::kMaxValue);
base::UmaHistogramSparse("Crashpad.IntermediateDump.Reader.InvalidKeySize",
static_cast<uint16_t>(key));
}
#endif