OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "storage/common/storage_histograms.h" |
| 6 |
| 7 #include "base/metrics/histogram_functions.h" |
| 8 |
| 9 namespace storage { |
| 10 |
| 11 void RecordBytesWritten(const char* label, int amount) { |
| 12 const std::string name = "Storage.BytesWritten."; |
| 13 base::UmaHistogramCounts10M(name + label, amount); |
| 14 } |
| 15 |
| 16 void RecordBytesRead(const char* label, int amount) { |
| 17 const std::string name = "Storage.BytesRead."; |
| 18 base::UmaHistogramCounts10M(name + label, amount); |
| 19 } |
| 20 |
| 21 } // namespace storage |
OLD | NEW |