0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00
mongodb/util/processinfo.h

32 lines
460 B
C
Raw Normal View History

// processinfo.h
#pragma once
#include <sys/types.h>
#include <unistd.h>
namespace mongo {
class ProcessInfo {
public:
ProcessInfo( pid_t pid = getpid() );
~ProcessInfo();
/**
* @return mbytes
*/
int getVirtualMemorySize();
/**
* @return mbytes
*/
int getResidentSize();
bool supported();
private:
pid_t _pid;
};
}