#include <memusage.h>
|
unsigned long | memusage (const char **source) |
|
Definition at line 15 of file memusage.h.
◆ memusageinit()
memusageinit::memusageinit |
( |
| ) |
|
Definition at line 22 of file memusage.C.
23 if ( initialized == 0 ) {
24 sbrkval = (
unsigned long) sbrk(0);
◆ memusage
unsigned long memusage |
( |
const char ** |
source | ) |
|
|
friend |
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 158 of file memusage.C.
160 unsigned long memtotal = 0;
161 const char* s =
"ERROR";
163 if ( ! CmiMemoryIs(CMI_MEMORY_IS_OS) ) {
164 memtotal = CmiMemoryUsage(); s =
"CmiMemoryUsage";
168 if( ! memtotal) { memtotal = memusage_bgq(); s=
"Kernel_GetMemorySize on BG/Q"; }
172 if( ! memtotal) { memtotal = memusage_bgp(); s=
"mallinfo on BG/P"; }
175 #if defined(WIN32) && !defined(__CYGWIN__) 177 memtotal = CmiMemoryUsage(); s =
"GetProcessMemoryInfo";
189 if ( ! memtotal ) { memtotal = memusageinit::memusage_sbrk(); s =
"sbrk"; }
191 if ( ! memtotal ) { memtotal =
memusage_ps(); s =
"ps"; }
193 if ( ! memtotal ) { memtotal = CmiMemoryUsage(); s =
"CmiMemoryUsage"; }
195 if ( ! memtotal ) s =
"nothing";
197 if ( source ) *source = s;
199 #if NODEGROUP_FORCE_REGISTER unsigned long memusage_mallinfo()
unsigned long memusage_ps()
unsigned long memusage_proc_self_stat()
unsigned long memusage_mstats()
The documentation for this class was generated from the following files: