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 // static
void Metrics::MissingIntermediateDumpKey( void Metrics::MissingIntermediateDumpKey(
const internal::IntermediateDumpKey& key) { const internal::IntermediateDumpKey& key) {
UMA_HISTOGRAM_ENUMERATION("Crashpad.IntermediateDump.Reader.MissingKey", base::UmaHistogramSparse("Crashpad.IntermediateDump.Reader.MissingKey",
key, static_cast<uint16_t>(key));
internal::IntermediateDumpKey::kMaxValue);
} }
// static // static
void Metrics::InvalidIntermediateDumpKeySize( void Metrics::InvalidIntermediateDumpKeySize(
const internal::IntermediateDumpKey& key) { const internal::IntermediateDumpKey& key) {
UMA_HISTOGRAM_ENUMERATION("Crashpad.IntermediateDump.Reader.InvalidKeySize", base::UmaHistogramSparse("Crashpad.IntermediateDump.Reader.InvalidKeySize",
key, static_cast<uint16_t>(key));
internal::IntermediateDumpKey::kMaxValue);
} }
#endif #endif