Changeset 19069 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Apr 21, 2009 11:59:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/Performance.h
r17911 r19069 144 144 virtual ~CollectorHAL() { }; 145 145 virtual int preCollect(const CollectorHints& /* hints */) { return VINF_SUCCESS; } 146 /** Returns averaged CPU usage in 1/1000th per cent across all host's CPUs. */ 146 147 virtual int getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle); 148 /** Returns the average frequency in MHz across all host's CPUs. */ 147 149 virtual int getHostCpuMHz(ULONG *mhz); 150 /** Returns the amount of physical memory in kilobytes. */ 148 151 virtual int getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available) = 0; 152 /** Returns CPU usage in 1/1000th per cent by a particular process. */ 149 153 virtual int getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel); 154 /** Returns the amount of memory used by a process in kilobytes. */ 150 155 virtual int getProcessMemoryUsage(RTPROCESS process, ULONG *used) = 0; 151 156 157 /** Returns CPU usage counters in platform-specific units. */ 152 158 virtual int getRawHostCpuLoad(uint64_t *user, uint64_t *kernel, uint64_t *idle); 159 /** Returns process' CPU usage counter in platform-specific units. */ 153 160 virtual int getRawProcessCpuLoad(RTPROCESS process, uint64_t *user, uint64_t *kernel, uint64_t *total); 154 161 };
Note:
See TracChangeset
for help on using the changeset viewer.