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

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

Issue 2349083002: Update Crashpad to 23d31c4fea61962e156f992889c6b041ad757d12 (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') | third_party/crashpad/crashpad/util/util.gyp » ('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/thread/thread.cc b/third_party/crashpad/crashpad/util/misc/metrics.cc
similarity index 64%
copy from third_party/crashpad/crashpad/util/thread/thread.cc
copy to third_party/crashpad/crashpad/util/misc/metrics.cc
index 04782bb797895566aeba80e901f086f8bbdb2360..6a363b1302a2b9e68d256fd1d503c4a5c7d74b77 100644
--- a/third_party/crashpad/crashpad/util/thread/thread.cc
+++ b/third_party/crashpad/crashpad/util/misc/metrics.cc
@@ -1,4 +1,4 @@
-// Copyright 2015 The Crashpad Authors. All rights reserved.
+// Copyright 2016 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -12,17 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "util/thread/thread.h"
+#include "util/misc/metrics.h"
-#include "base/logging.h"
+#include "base/metrics/histogram_macros.h"
namespace crashpad {
-Thread::Thread() : platform_thread_(0) {
-}
-
-Thread::~Thread() {
- DCHECK(!platform_thread_);
+void Metrics::CrashReportSize(FileHandle file) {
+ const FileOffset size = LoggingFileSizeByHandle(file);
+ UMA_HISTOGRAM_CUSTOM_COUNTS(
+ "Crashpad.CrashReportSize", size, 0, 5 * 1024 * 1024, 50);
}
} // namespace crashpad
« no previous file with comments | « third_party/crashpad/crashpad/util/misc/metrics.h ('k') | third_party/crashpad/crashpad/util/util.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698