Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: base/perf_util.h

Issue 714273004: mac: Expose keychain access frequency to Telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mock_keychain_sleep
Patch Set: Add a common subclass to measurements. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/perf_util.cc » ('j') | base/perf_util.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | base/perf_util.cc » ('j') | base/perf_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698