PLearn 0.1
Namespaces | Functions
procinfo.cc File Reference
#include <plearn/base/RemoteDeclareMethod.h>
#include "procinfo.h"
#include <plearn/base/plerror.h>
#include <plearn/base/stringutils.h>
#include <plearn/base/tostring.h>
#include <sys/types.h>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <nspr/prenv.h>
#include <unistd.h>
Include dependency graph for procinfo.cc:

Go to the source code of this file.

Namespaces

namespace  PLearn
 

< for swap


Functions

size_t PLearn::getSystemTotalMemory ()
 Return the total memory installed in the system in bytes.
size_t PLearn::getProcessDataMemory ()
 Return the total data memory used by the current process in bytes.
int PLearn::getPid ()
 Return the processus id.
string PLearn::getUser ()
BEGIN_DECLARE_REMOTE_FUNCTIONS PLearn::declareFunction ("getSystemTotalMemory",&getSystemTotalMemory,(BodyDoc("Return the total memory installed in the system in bytes."), RetDoc("Memory size")))
 PLearn::declareFunction ("getProcessDataMemory",&getProcessDataMemory,(BodyDoc("Return the total data memory used by the current process in bytes."), RetDoc("Used memory size")))
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines