Module FoamThread
source code
Thread wrappers for OpenFOAM
|
getLinuxMem(thrd)
Reads the Memory usage of a thread on a linux-System
|
Imports:
threading.Thread,
threading.Lock,
threading.Timer,
popen2.Popen4,
time.time,
time.sleep,
resource.getrusage,
resource.getpagesize,
resource.RUSAGE_SELF,
resource.RUSAGE_CHILDREN,
os.uname,
os.kill,
signal,
Basics.LineReader.LineReader,
Infrastructure.Logging.foamLogger
Reads the Memory usage of a thread on a linux-System
-
- Parameters:
thrd - the thread object in question
|