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 #include "chrome/browser/process_info_snapshot.h" | 5 #include "chrome/browser/process_info_snapshot.h" |
6 | 6 |
7 #include <iostream> | |
8 #include <sstream> | 7 #include <sstream> |
9 | 8 |
10 #include "base/logging.h" | 9 #include "base/logging.h" |
11 #include "base/string_util.h" | 10 #include "base/string_util.h" |
12 #include "base/thread.h" | 11 #include "base/thread.h" |
13 | 12 |
14 // Implementation for the Mac; calls '/bin/ps' for information when | 13 // Implementation for the Mac; calls '/bin/ps' for information when |
15 // |Sample()| is called. | 14 // |Sample()| is called. |
16 | 15 |
17 // Default constructor. | 16 // Default constructor. |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 ws_usage->shareable = 0; | 159 ws_usage->shareable = 0; |
161 ws_usage->shared = 0; | 160 ws_usage->shared = 0; |
162 return false; | 161 return false; |
163 } | 162 } |
164 | 163 |
165 ws_usage->priv = 0; | 164 ws_usage->priv = 0; |
166 ws_usage->shareable = proc_info.rss; | 165 ws_usage->shareable = proc_info.rss; |
167 ws_usage->shared = 0; | 166 ws_usage->shared = 0; |
168 return true; | 167 return true; |
169 } | 168 } |
OLD | NEW |