Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: third_party/crashpad/crashpad/util/misc/metrics.cc

Issue 2372593004: Update Crashpad to ac6c01b5752ecb1aa1da0ea613740cf6825bb72e (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/crashpad/crashpad/util/misc/metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/crashpad/crashpad/util/misc/metrics.cc
diff --git a/third_party/crashpad/crashpad/util/misc/metrics.cc b/third_party/crashpad/crashpad/util/misc/metrics.cc
index 6967398d0e1cb45bf0c129636d30baa3616eb80a..db7718b767e850b3874192fa0265a8be330b00f5 100644
--- a/third_party/crashpad/crashpad/util/misc/metrics.cc
+++ b/third_party/crashpad/crashpad/util/misc/metrics.cc
@@ -35,12 +35,20 @@ enum class ExceptionProcessingState {
void ExceptionProcessing(ExceptionProcessingState state) {
UMA_HISTOGRAM_COUNTS("Crashpad.ExceptionEncountered",
- static_cast<int>(state));
+ static_cast<int32_t>(state));
}
} // namespace
// static
+void Metrics::CrashReportPending(PendingReportReason reason) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "Crashpad.CrashReportPending",
+ static_cast<int32_t>(reason),
+ static_cast<int32_t>(PendingReportReason::kMaxValue));
+}
+
+// static
void Metrics::CrashReportSize(FileHandle file) {
const FileOffset size = LoggingFileSizeByHandle(file);
UMA_HISTOGRAM_CUSTOM_COUNTS(
@@ -48,6 +56,20 @@ void Metrics::CrashReportSize(FileHandle file) {
}
// static
+void Metrics::CrashUploadAttempted(bool successful) {
+ UMA_HISTOGRAM_COUNTS("Crashpad.CrashUpload.AttemptSuccessful",
+ static_cast<int32_t>(successful));
+}
+
+// static
+void Metrics::CrashUploadSkipped(CrashSkippedReason reason) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "Crashpad.CrashUpload.Skipped",
+ static_cast<int32_t>(reason),
+ static_cast<int32_t>(CrashSkippedReason::kMaxValue));
+}
+
+// static
void Metrics::ExceptionCaptureResult(CaptureResult result) {
ExceptionProcessing(ExceptionProcessingState::kFinished);
UMA_HISTOGRAM_ENUMERATION("Crashpad.ExceptionCaptureResult",
« no previous file with comments | « third_party/crashpad/crashpad/util/misc/metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698