| 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
|
|
|