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 <sys/types.h> | 7 #include <sys/types.h> |
8 #include <unistd.h> | 8 #include <unistd.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/process_util.h" | 15 #include "base/process/process_iterator.h" |
| 16 #include "base/process/process_metrics.h" |
16 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
19 #include "chrome/common/chrome_constants.h" | 20 #include "chrome/common/chrome_constants.h" |
20 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/common/process_type.h" | 22 #include "content/public/common/process_type.h" |
22 #include "grit/chromium_strings.h" | 23 #include "grit/chromium_strings.h" |
23 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
24 | 25 |
25 using base::ProcessEntry; | 26 using base::ProcessEntry; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 269 |
269 #if defined(OS_CHROMEOS) | 270 #if defined(OS_CHROMEOS) |
270 GetSwapData(&swap_data_); | 271 GetSwapData(&swap_data_); |
271 #endif | 272 #endif |
272 | 273 |
273 // Finally return to the browser thread. | 274 // Finally return to the browser thread. |
274 BrowserThread::PostTask( | 275 BrowserThread::PostTask( |
275 BrowserThread::UI, FROM_HERE, | 276 BrowserThread::UI, FROM_HERE, |
276 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); | 277 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); |
277 } | 278 } |
OLD | NEW |