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

Side by Side Diff: base/process_util.h

Issue 11293026: Revert 165244 - Create ash memory monitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | base/process_util_linux.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) 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 // This file/namespace contains utility functions for enumerating, ending and 5 // This file/namespace contains utility functions for enumerating, ending and
6 // computing statistics of processes. 6 // computing statistics of processes.
7 7
8 #ifndef BASE_PROCESS_UTIL_H_ 8 #ifndef BASE_PROCESS_UTIL_H_
9 #define BASE_PROCESS_UTIL_H_ 9 #define BASE_PROCESS_UTIL_H_
10 10
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 809
810 int total; 810 int total;
811 int free; 811 int free;
812 int buffers; 812 int buffers;
813 int cached; 813 int cached;
814 int active_anon; 814 int active_anon;
815 int inactive_anon; 815 int inactive_anon;
816 int active_file; 816 int active_file;
817 int inactive_file; 817 int inactive_file;
818 int shmem; 818 int shmem;
819
820 // Gem data will be -1 if not supported.
821 int gem_objects;
822 long long gem_size;
823 }; 819 };
824 // Retrieves data from /proc/meminfo about system-wide memory consumption. 820 // Retrieves data from /proc/meminfo about system-wide memory consumption.
825 // Fills in the provided |meminfo| structure. Returns true on success. 821 // Fills in the provided |meminfo| structure. Returns true on success.
826 // Exposed for memory debugging widget. 822 // Exposed for memory debugging widget.
827 BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo); 823 BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo);
828 #endif // defined(OS_LINUX) || defined(OS_ANDROID) 824 #endif // defined(OS_LINUX) || defined(OS_ANDROID)
829 825
830 // Returns the memory committed by the system in KBytes. 826 // Returns the memory committed by the system in KBytes.
831 // Returns 0 if it can't compute the commit charge. 827 // Returns 0 if it can't compute the commit charge.
832 BASE_EXPORT size_t GetSystemCommitCharge(); 828 BASE_EXPORT size_t GetSystemCommitCharge();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 // YOUR CODE IS LIKELY TO BE REVERTED. THANK YOU. 872 // YOUR CODE IS LIKELY TO BE REVERTED. THANK YOU.
877 // 873 //
878 // TODO(shess): Weird place to put it, but this is where the OOM 874 // TODO(shess): Weird place to put it, but this is where the OOM
879 // killer currently lives. 875 // killer currently lives.
880 BASE_EXPORT void* UncheckedMalloc(size_t size); 876 BASE_EXPORT void* UncheckedMalloc(size_t size);
881 #endif // defined(OS_MACOSX) 877 #endif // defined(OS_MACOSX)
882 878
883 } // namespace base 879 } // namespace base
884 880
885 #endif // BASE_PROCESS_UTIL_H_ 881 #endif // BASE_PROCESS_UTIL_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | base/process_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698