Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Side by Side Diff: base/process/process_metrics.h

Issue 1264683004: Add empty implementation of GetSystemMemoryInfo for IOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig@ comments. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/process/process_metrics_ios.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 // This file contains routines for gathering resource statistics for processes 5 // This file contains routines for gathering resource statistics for processes
6 // running on the system. 6 // running on the system.
7 7
8 #ifndef BASE_PROCESS_PROCESS_METRICS_H_ 8 #ifndef BASE_PROCESS_PROCESS_METRICS_H_
9 #define BASE_PROCESS_PROCESS_METRICS_H_ 9 #define BASE_PROCESS_PROCESS_METRICS_H_
10 10
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // Sets the file descriptor soft limit to |max_descriptors| or the OS hard 240 // Sets the file descriptor soft limit to |max_descriptors| or the OS hard
241 // limit, whichever is lower. 241 // limit, whichever is lower.
242 BASE_EXPORT void SetFdLimit(unsigned int max_descriptors); 242 BASE_EXPORT void SetFdLimit(unsigned int max_descriptors);
243 #endif // defined(OS_POSIX) 243 #endif // defined(OS_POSIX)
244 244
245 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ 245 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \
246 defined(OS_ANDROID) 246 defined(OS_ANDROID)
247 // Data about system-wide memory consumption. Values are in KB. Available on 247 // Data about system-wide memory consumption. Values are in KB. Available on
248 // Windows, Mac, Linux, Android and Chrome OS. 248 // Windows, Mac, Linux, Android and Chrome OS.
249 // 249 //
250 // Total/free memory are available on all platforms. Total/free swap memory are 250 // Total/free memory are available on all platforms that implement
251 // available on all platforms except on Mac. Buffers/cached/active_anon/ 251 // GetSystemMemoryInfo(). Total/free swap memory are available on all platforms
252 // inactive_anon/active_file/inactive_file/dirty/pswpin/pswpout/pgmajfault are 252 // except on Mac. Buffers/cached/active_anon/inactive_anon/active_file/
253 // available on Linux/Android/Chrome OS. Shmem/slab/gem_objects/gem_size are 253 // inactive_file/dirty/pswpin/pswpout/pgmajfault are available on
254 // Chrome OS specific. 254 // Linux/Android/Chrome OS. Shmem/slab/gem_objects/gem_size are Chrome OS only.
255 struct BASE_EXPORT SystemMemoryInfoKB { 255 struct BASE_EXPORT SystemMemoryInfoKB {
256 SystemMemoryInfoKB(); 256 SystemMemoryInfoKB();
257 257
258 // Serializes the platform specific fields to value. 258 // Serializes the platform specific fields to value.
259 scoped_ptr<Value> ToValue() const; 259 scoped_ptr<Value> ToValue() const;
260 260
261 int total; 261 int total;
262 int free; 262 int free;
263 263
264 #if !defined(OS_MACOSX) 264 #if !defined(OS_MACOSX)
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 SystemDiskInfo disk_info_; 403 SystemDiskInfo disk_info_;
404 #endif 404 #endif
405 #if defined(OS_CHROMEOS) 405 #if defined(OS_CHROMEOS)
406 SwapInfo swap_info_; 406 SwapInfo swap_info_;
407 #endif 407 #endif
408 }; 408 };
409 409
410 } // namespace base 410 } // namespace base
411 411
412 #endif // BASE_PROCESS_PROCESS_METRICS_H_ 412 #endif // BASE_PROCESS_PROCESS_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | base/process/process_metrics_ios.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698