| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_PROCESS_INFO_SNAPSHOT_H_ | 5 #ifndef CHROME_BROWSER_PROCESS_INFO_SNAPSHOT_H_ |
| 6 #define CHROME_BROWSER_PROCESS_INFO_SNAPSHOT_H_ | 6 #define CHROME_BROWSER_PROCESS_INFO_SNAPSHOT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 8 #include <sys/types.h> | 10 #include <sys/types.h> |
| 9 | 11 |
| 10 #include <map> | 12 #include <map> |
| 11 #include <string> | 13 #include <string> |
| 12 #include <vector> | 14 #include <vector> |
| 13 | 15 |
| 14 #include "base/process/process_handle.h" | 16 #include "base/process/process_handle.h" |
| 15 #include "base/process/process_metrics.h" | 17 #include "base/process/process_metrics.h" |
| 16 | 18 |
| 17 // A class which captures process information at a given point in time when its | 19 // A class which captures process information at a given point in time when its |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // size_t GetWorkingSetSizeOfPID(int pid) const; | 106 // size_t GetWorkingSetSizeOfPID(int pid) const; |
| 105 // size_t GetPeakWorkingSetSizeOfPID(int pid) const; | 107 // size_t GetPeakWorkingSetSizeOfPID(int pid) const; |
| 106 // size_t GetPrivateBytesOfPID(int pid) const; | 108 // size_t GetPrivateBytesOfPID(int pid) const; |
| 107 | 109 |
| 108 private: | 110 private: |
| 109 // map from |int| (PID) to |ProcInfoEntry| | 111 // map from |int| (PID) to |ProcInfoEntry| |
| 110 std::map<int,ProcInfoEntry> proc_info_entries_; | 112 std::map<int,ProcInfoEntry> proc_info_entries_; |
| 111 }; | 113 }; |
| 112 | 114 |
| 113 #endif // CHROME_BROWSER_PROCESS_INFO_SNAPSHOT_H_ | 115 #endif // CHROME_BROWSER_PROCESS_INFO_SNAPSHOT_H_ |
| OLD | NEW |