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 #include "chrome/browser/memory_details.h" | 5 #include "chrome/browser/memory_details.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/mac/mac_util.h" | 14 #include "base/mac/foundation_util.h" |
15 #include "base/process/process_iterator.h" | 15 #include "base/process/process_iterator.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
19 #include "chrome/browser/process_info_snapshot.h" | 19 #include "chrome/browser/process_info_snapshot.h" |
20 #include "chrome/common/chrome_constants.h" | 20 #include "chrome/common/chrome_constants.h" |
21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
22 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
23 #include "chrome/grit/chromium_strings.h" | 23 #include "chrome/grit/chromium_strings.h" |
24 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 } | 228 } |
229 } | 229 } |
230 | 230 |
231 // Memory info. | 231 // Memory info. |
232 process_info.GetCommittedKBytesOfPID(info.pid, &info.committed); | 232 process_info.GetCommittedKBytesOfPID(info.pid, &info.committed); |
233 process_info.GetWorkingSetKBytesOfPID(info.pid, &info.working_set); | 233 process_info.GetWorkingSetKBytesOfPID(info.pid, &info.working_set); |
234 | 234 |
235 // Add the process info to our list. | 235 // Add the process info to our list. |
236 process_data_[CHROME_BROWSER].processes.push_back(info); | 236 process_data_[CHROME_BROWSER].processes.push_back(info); |
237 } | 237 } |
OLD | NEW |