12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef Prozess_H
- #define Prozess_H
- #include "Betriebssystem.h"
- #include "ReferenceCounter.h"
- #ifdef WIN32
- #pragma comment( lib, "Psapi.lib" )
- #endif
- namespace Framework
- {
- #ifdef WIN32
- struct MemoryInfo;
- #endif
- class Prozess;
- #ifdef WIN32
- struct MemoryInfo
- {
- unsigned long ausgelagerteFehler;
- __int64 höchsteAusgelagerterSpeicher;
- __int64 ausgelagerterSpeicher;
- __int64 höchsterAusgelagerterPool;
- __int64 ausgelagerterPool;
- __int64 höchsterNichtAusgelagerterPool;
- __int64 nichtAusgelagerterPool;
- __int64 vorreservierterSpeicher;
- __int64 höchsterVorreservierterSpeicher;
- };
- #endif
-
-
- class Prozess : public virtual ReferenceCounter
- {
- private:
- #ifdef WIN32
- int numProcessors;
- ULARGE_INTEGER lastCPU, lastSysCPU, lastUserCPU;
- void *pHandle;
- #endif
- public:
-
- DLLEXPORT Prozess();
-
- #ifdef WIN32
-
- DLLEXPORT void setProcess( void *pHandle );
- #endif
-
- DLLEXPORT double getCPU() const;
-
- DLLEXPORT __int64 getMem() const;
- #ifdef WIN32
-
- DLLEXPORT MemoryInfo getMemInfo() const;
-
- DLLEXPORT int getThreadAnzahl() const;
- #endif
- };
- }
- #endif
|