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

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

Issue 2710663006: Update Crashpad to 4a2043ea65e2641ef1a921801c0aaa15ada02fc7 (Closed)
Patch Set: Update Crashpad to 4a2043ea65e2 Created 3 years, 10 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') | third_party/crashpad/crashpad/util/misc/zlib.h » ('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 48be7ecd7aed785a9822331b51c961ff19184443..e2bd9f0ba38bdc761739b02ee66f68a1c5fbf5cd 100644
--- a/third_party/crashpad/crashpad/util/misc/metrics.cc
+++ b/third_party/crashpad/crashpad/util/misc/metrics.cc
@@ -98,6 +98,14 @@ void Metrics::ExceptionEncountered() {
ExceptionProcessing(ExceptionProcessingState::kStarted);
}
+// static
+void Metrics::HandlerLifetimeMilestone(LifetimeMilestone milestone) {
+ UMA_HISTOGRAM_ENUMERATION("Crashpad.HandlerLifetimeMilestone",
+ static_cast<int32_t>(milestone),
+ static_cast<int32_t>(LifetimeMilestone::kMaxValue));
+}
+
+// static
void Metrics::HandlerCrashed(uint32_t exception_code) {
UMA_HISTOGRAM_SPARSE_SLOWLY(
"Crashpad.HandlerCrash.ExceptionCode." METRICS_OS_NAME,
« no previous file with comments | « third_party/crashpad/crashpad/util/misc/metrics.h ('k') | third_party/crashpad/crashpad/util/misc/zlib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698