OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file contains a set of histogram support functions for logging behavior | 5 // This file contains a set of histogram support functions for logging behavior |
6 // seen while loading NaCl plugins. | 6 // seen while loading NaCl plugins. |
7 | 7 |
8 #ifndef COMPONENTS_NACL_RENDERER_HISTOGRAM_H_ | 8 #ifndef COMPONENTS_NACL_RENDERER_HISTOGRAM_H_ |
9 #define COMPONENTS_NACL_RENDERER_HISTOGRAM_H_ | 9 #define COMPONENTS_NACL_RENDERER_HISTOGRAM_H_ |
10 | 10 |
| 11 #include <stdint.h> |
| 12 |
11 #include <string> | 13 #include <string> |
12 #include "base/time/time.h" | 14 #include "base/time/time.h" |
13 #include "components/nacl/renderer/ppb_nacl_private.h" | 15 #include "components/nacl/renderer/ppb_nacl_private.h" |
14 | 16 |
15 namespace nacl { | 17 namespace nacl { |
16 | 18 |
17 void HistogramCustomCounts(const std::string& name, | 19 void HistogramCustomCounts(const std::string& name, |
18 int32_t sample, | 20 int32_t sample, |
19 int32_t min, | 21 int32_t min, |
20 int32_t max, | 22 int32_t max, |
(...skipping 27 matching lines...) Expand all Loading... |
48 void HistogramHTTPStatusCode(const std::string& name, int32_t status); | 50 void HistogramHTTPStatusCode(const std::string& name, int32_t status); |
49 void HistogramEnumerateManifestIsDataURI(bool is_data_uri); | 51 void HistogramEnumerateManifestIsDataURI(bool is_data_uri); |
50 void HistogramKBPerSec(const std::string& name, int64_t kb, int64_t us); | 52 void HistogramKBPerSec(const std::string& name, int64_t kb, int64_t us); |
51 void HistogramRatio(const std::string& name, | 53 void HistogramRatio(const std::string& name, |
52 int64_t numerator, | 54 int64_t numerator, |
53 int64_t denominator); | 55 int64_t denominator); |
54 | 56 |
55 } // namespace nacl | 57 } // namespace nacl |
56 | 58 |
57 #endif // COMPONENTS_NACL_RENDERER_HISTOGRAM_H_ | 59 #endif // COMPONENTS_NACL_RENDERER_HISTOGRAM_H_ |
OLD | NEW |