| 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 #ifndef BASE_PERF_UTIL_H_ | 5 #ifndef BASE_PERF_UTIL_H_ |
| 6 #define BASE_PERF_UTIL_H_ | 6 #define BASE_PERF_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 | 11 |
| 12 // Spins the CPU for the specified amount of time. Not for use in production | 12 // Spins the CPU for the specified amount of time. Not for use in production |
| 13 // code. | 13 // code. |
| 14 void SpinCpuMicroseconds(int64_t microseconds); | 14 void SpinCpuMicroseconds(int64_t microseconds); |
| 15 | 15 |
| 16 // Emits a local histogram indicating that the keychain was accessed. |
| 17 void EmitAccessKeychainHistogram(); |
| 18 |
| 16 } // namespace base | 19 } // namespace base |
| 17 | 20 |
| 18 #endif // BASE_PERF_UTIL_H_ | 21 #endif // BASE_PERF_UTIL_H_ |
| OLD | NEW |