VirtualBox

Changeset 19069 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Apr 21, 2009 11:59:50 AM (16 years ago)
Author:
vboxsync
Message:

Tiny descriptions of CollectorHAL methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/Performance.h

    r17911 r19069  
    144144        virtual ~CollectorHAL() { };
    145145        virtual int preCollect(const CollectorHints& /* hints */) { return VINF_SUCCESS; }
     146        /** Returns averaged CPU usage in 1/1000th per cent across all host's CPUs. */
    146147        virtual int getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle);
     148        /** Returns the average frequency in MHz across all host's CPUs. */
    147149        virtual int getHostCpuMHz(ULONG *mhz);
     150        /** Returns the amount of physical memory in kilobytes. */
    148151        virtual int getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available) = 0;
     152        /** Returns CPU usage in 1/1000th per cent by a particular process. */
    149153        virtual int getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel);
     154        /** Returns the amount of memory used by a process in kilobytes. */
    150155        virtual int getProcessMemoryUsage(RTPROCESS process, ULONG *used) = 0;
    151156
     157        /** Returns CPU usage counters in platform-specific units. */
    152158        virtual int getRawHostCpuLoad(uint64_t *user, uint64_t *kernel, uint64_t *idle);
     159        /** Returns process' CPU usage counter in platform-specific units. */
    153160        virtual int getRawProcessCpuLoad(RTPROCESS process, uint64_t *user, uint64_t *kernel, uint64_t *total);
    154161    };
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette