summaryrefslogtreecommitdiffstats
path: root/veslibrary/ves_cpplibrary/src/lib/encode/include/XProcessStats.h
blob: e92bc25117d4da466ffc7671c2a5f6687bee98a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
        
#include "XEvent.h"

namespace vagt
{
    namespace encode
    {
        class XProcessStats 
        {
        public:
            XProcessStats(const XString& processIdentifier);

            virtual void setForkRate(XNumber forkRate);
            virtual void setPsStateStopped(XNumber psStateStopped);
            virtual void setPsStatePaging(XNumber psStatePaging);
            virtual void setPsStateSleeping(XNumber psStateSleeping);
            virtual void setProcessIdentifier(const XString& processIdentifier);
            virtual void setPsStateBlocked(XNumber psStateBlocked);
            virtual void setPsStateZombie(XNumber psStateZombie);
            virtual void setPsStateRunning(XNumber psStateRunning);

            std::shared_ptr<XProcessStats> imp_;

        protected:
            XProcessStats();
        };

        using XArrayOfXProcessStats = std::vector<XProcessStats>;
    }
}