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 #include <string> | 8 #include <string> |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "ppapi/c/private/ppb_nacl_private.h" | 10 #include "components/nacl/renderer/ppb_nacl_private.h" |
11 | 11 |
12 namespace nacl { | 12 namespace nacl { |
13 | 13 |
14 void HistogramCustomCounts(const std::string& name, | 14 void HistogramCustomCounts(const std::string& name, |
15 int32_t sample, | 15 int32_t sample, |
16 int32_t min, | 16 int32_t min, |
17 int32_t max, | 17 int32_t max, |
18 uint32_t bucket_count); | 18 uint32_t bucket_count); |
19 | 19 |
20 void HistogramEnumerate(const std::string& name, | 20 void HistogramEnumerate(const std::string& name, |
(...skipping 19 matching lines...) Expand all Loading... |
40 int64_t nexe_size); | 40 int64_t nexe_size); |
41 void HistogramStartupTimeMedium(const std::string& name, | 41 void HistogramStartupTimeMedium(const std::string& name, |
42 base::TimeDelta td, | 42 base::TimeDelta td, |
43 int64_t nexe_size); | 43 int64_t nexe_size); |
44 void HistogramSizeKB(const std::string& name, int32_t sample); | 44 void HistogramSizeKB(const std::string& name, int32_t sample); |
45 void HistogramHTTPStatusCode(const std::string& name, int32_t status); | 45 void HistogramHTTPStatusCode(const std::string& name, int32_t status); |
46 void HistogramEnumerateManifestIsDataURI(bool is_data_uri); | 46 void HistogramEnumerateManifestIsDataURI(bool is_data_uri); |
47 void HistogramKBPerSec(const std::string& name, int64_t kb, int64_t us); | 47 void HistogramKBPerSec(const std::string& name, int64_t kb, int64_t us); |
48 | 48 |
49 } // namespace nacl | 49 } // namespace nacl |
OLD | NEW |