Go to the source code of this file.
◆ memusage()
unsigned long memusage |
( |
const char ** |
source = 0 | ) |
|
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.
References memusage_mallinfo(), memusage_mstats(), memusage_proc_self_stat(), and memusage_ps().
Referenced by main::main(), memusage_kB(), and memusage_MB().
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()
◆ memusage_kB()
Definition at line 12 of file memusage.h.
References memusage().
unsigned long memusage(const char **source=0)
◆ memusage_MB()
Definition at line 13 of file memusage.h.
References memusage().
Referenced by CollectionMaster::disposeForces(), CollectionMaster::disposePositions(), CollectionMaster::disposeVelocities(), BackEnd::exit(), main::main(), Controller::printEnergies(), Rebalancer::printLoads(), Controller::printTiming(), Node::run(), CollectionMaster::startNextRoundOutputForce(), CollectionMaster::startNextRoundOutputPos(), CollectionMaster::startNextRoundOutputVel(), and Node::startup().
unsigned long memusage(const char **source=0)
◆ memusageinitobject