OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PRIVATE_WORKING_SET_SNAPSHOT_H_ | 5 #ifndef CHROME_BROWSER_WIN_PRIVATE_WORKING_SET_SNAPSHOT_H_ |
6 #define CHROME_BROWSER_PRIVATE_WORKING_SET_SNAPSHOT_H_ | 6 #define CHROME_BROWSER_WIN_PRIVATE_WORKING_SET_SNAPSHOT_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | |
11 #include <pdh.h> | 10 #include <pdh.h> |
12 #include <stddef.h> | 11 #include <stddef.h> |
13 | 12 |
14 #include <vector> | 13 #include <vector> |
15 | 14 |
16 #include "base/macros.h" | 15 #include "base/macros.h" |
17 #include "base/process/process_handle.h" | 16 #include "base/process/process_handle.h" |
18 #include "base/win/scoped_handle.h" | 17 #include "base/win/scoped_handle.h" |
19 | 18 |
20 namespace win { | 19 namespace win { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 109 |
111 // A PdhCounterPair for each successful AddToMonitorList call. | 110 // A PdhCounterPair for each successful AddToMonitorList call. |
112 std::vector<PdhCounterPair> counter_pairs_; | 111 std::vector<PdhCounterPair> counter_pairs_; |
113 | 112 |
114 // After each call to Sample this will hold the results, sorted by process id. | 113 // After each call to Sample this will hold the results, sorted by process id. |
115 std::vector<PidAndPrivateWorkingSet> records_; | 114 std::vector<PidAndPrivateWorkingSet> records_; |
116 | 115 |
117 DISALLOW_COPY_AND_ASSIGN(PrivateWorkingSetSnapshot); | 116 DISALLOW_COPY_AND_ASSIGN(PrivateWorkingSetSnapshot); |
118 }; | 117 }; |
119 | 118 |
120 #endif // defined(OS_WIN) | 119 #endif // CHROME_BROWSER_WIN_PRIVATE_WORKING_SET_SNAPSHOT_H_ |
121 | |
122 #endif // CHROME_BROWSER_PRIVATE_WORKING_SET_SNAPSHOT_H_ | |
OLD | NEW |