diff options
Diffstat (limited to 'util/processinfo.h')
-rw-r--r-- | util/processinfo.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/util/processinfo.h b/util/processinfo.h index 8e20beb..b10e6fe 100644 --- a/util/processinfo.h +++ b/util/processinfo.h @@ -30,12 +30,12 @@ int getpid(); namespace mongo { class BSONObjBuilder; - + class ProcessInfo { public: ProcessInfo( pid_t pid = getpid() ); ~ProcessInfo(); - + /** * @return mbytes */ @@ -50,7 +50,7 @@ namespace mongo { * Append platform-specific data to obj */ void getExtraInfo(BSONObjBuilder& info); - + bool supported(); bool blockCheckSupported(); @@ -59,7 +59,9 @@ namespace mongo { private: pid_t _pid; }; - + void writePidFile( const std::string& path ); - + + void printMemInfo( const char * where ); + } |