OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_METRICS_PERF_PROVIDER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_METRICS_PERF_PROVIDER_CHROMEOS_H_ |
6 #define CHROME_BROWSER_METRICS_PERF_PROVIDER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_METRICS_PERF_PROVIDER_CHROMEOS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
15 #include "chrome/common/metrics/proto/perf_data.pb.h" | 15 #include "components/metrics/proto/perf_data.pb.h" |
16 | 16 |
17 namespace metrics { | 17 namespace metrics { |
18 | 18 |
19 class WindowedIncognitoObserver; | 19 class WindowedIncognitoObserver; |
20 | 20 |
21 // Provides access to ChromeOS perf data. perf aka "perf events" is a | 21 // Provides access to ChromeOS perf data. perf aka "perf events" is a |
22 // performance profiling infrastructure built into the linux kernel. For more | 22 // performance profiling infrastructure built into the linux kernel. For more |
23 // information, see: https://perf.wiki.kernel.org/index.php/Main_Page. | 23 // information, see: https://perf.wiki.kernel.org/index.php/Main_Page. |
24 class PerfProvider : public base::NonThreadSafe { | 24 class PerfProvider : public base::NonThreadSafe { |
25 public: | 25 public: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // To pass around the "this" pointer across threads safely. | 59 // To pass around the "this" pointer across threads safely. |
60 base::WeakPtrFactory<PerfProvider> weak_factory_; | 60 base::WeakPtrFactory<PerfProvider> weak_factory_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(PerfProvider); | 62 DISALLOW_COPY_AND_ASSIGN(PerfProvider); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace metrics | 65 } // namespace metrics |
66 | 66 |
67 #endif // CHROME_BROWSER_METRICS_PERF_PROVIDER_CHROMEOS_H_ | 67 #endif // CHROME_BROWSER_METRICS_PERF_PROVIDER_CHROMEOS_H_ |
OLD | NEW |