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 #include "chromeos/device_event_log.h" | 5 #include "components/device_event_log/device_event_log.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chromeos/device_event_log_impl.h" | 10 #include "components/device_event_log/device_event_log_impl.h" |
11 | |
12 namespace chromeos { | |
13 | 11 |
14 namespace device_event_log { | 12 namespace device_event_log { |
15 | 13 |
16 namespace { | 14 namespace { |
17 | 15 |
18 const size_t kDefaultMaxEntries = 4000; | 16 const size_t kDefaultMaxEntries = 4000; |
19 | 17 |
20 const int kSlowMethodThresholdMs = 10; | 18 const int kSlowMethodThresholdMs = 10; |
21 const int kVerySlowMethodThresholdMs = 50; | 19 const int kVerySlowMethodThresholdMs = 50; |
22 | 20 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 level = LOG_LEVEL_ERROR; | 97 level = LOG_LEVEL_ERROR; |
100 DEVICE_LOG(type_, level) << "@@@ Slow method: " << file_ << ":" << name_ | 98 DEVICE_LOG(type_, level) << "@@@ Slow method: " << file_ << ":" << name_ |
101 << ": " << timer_.Elapsed().InMilliseconds() | 99 << ": " << timer_.Elapsed().InMilliseconds() |
102 << "ms"; | 100 << "ms"; |
103 } | 101 } |
104 } | 102 } |
105 | 103 |
106 } // namespace internal | 104 } // namespace internal |
107 | 105 |
108 } // namespace device_event_log | 106 } // namespace device_event_log |
109 | |
110 } // namespace chromeos | |
OLD | NEW |