Changeset 11180 in vbox for trunk/src/VBox/Main/win
- Timestamp:
- Aug 6, 2008 3:34:11 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34200
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/win/PerformanceWin.cpp
r10868 r11180 36 36 ~CollectorWin(); 37 37 38 virtual int getHostCpuLoad( unsigned long *user, unsigned long *kernel, unsigned long*idle);39 virtual int getHostCpuMHz( unsigned long*mhz);40 virtual int getHostMemoryUsage( unsigned long *total, unsigned long *used, unsigned long*available);41 virtual int getProcessCpuLoad(RTPROCESS process, unsigned long *user, unsigned long*kernel);42 virtual int getProcessMemoryUsage(RTPROCESS process, unsigned long*used);38 virtual int getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle); 39 virtual int getHostCpuMHz(ULONG *mhz); 40 virtual int getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available); 41 virtual int getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel); 42 virtual int getProcessMemoryUsage(RTPROCESS process, ULONG *used); 43 43 44 44 virtual int getRawHostCpuLoad(uint64_t *user, uint64_t *kernel, uint64_t *idle); … … 261 261 } 262 262 263 int CollectorWin::getHostCpuLoad( unsigned long *user, unsigned long *kernel, unsigned long*idle)263 int CollectorWin::getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle) 264 264 { 265 265 return VERR_NOT_IMPLEMENTED; … … 334 334 } 335 335 336 int CollectorWin::getHostCpuMHz( unsigned long*mhz)336 int CollectorWin::getHostCpuMHz(ULONG *mhz) 337 337 { 338 338 return VERR_NOT_IMPLEMENTED; 339 339 } 340 340 341 int CollectorWin::getHostMemoryUsage( unsigned long *total, unsigned long *used, unsigned long*available)341 int CollectorWin::getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available) 342 342 { 343 343 MEMORYSTATUSEX mstat; … … 346 346 if (GlobalMemoryStatusEx(&mstat)) 347 347 { 348 *total = ( unsigned long)( mstat.ullTotalPhys / 1000 );349 *available = ( unsigned long)( mstat.ullAvailPhys / 1000 );348 *total = (ULONG)( mstat.ullTotalPhys / 1000 ); 349 *available = (ULONG)( mstat.ullAvailPhys / 1000 ); 350 350 *used = *total - *available; 351 351 } … … 356 356 } 357 357 358 int CollectorWin::getProcessCpuLoad(RTPROCESS process, unsigned long *user, unsigned long*kernel)358 int CollectorWin::getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel) 359 359 { 360 360 return VERR_NOT_IMPLEMENTED; … … 430 430 } 431 431 432 int CollectorWin::getProcessMemoryUsage(RTPROCESS process, unsigned long*used)432 int CollectorWin::getProcessMemoryUsage(RTPROCESS process, ULONG *used) 433 433 { 434 434 HRESULT hr; … … 472 472 return VERR_INTERNAL_ERROR; 473 473 } 474 *used = ( unsigned long)(u64used / 1024);474 *used = (ULONG)(u64used / 1024); 475 475 rc = VINF_SUCCESS; 476 476 }
Note:
See TracChangeset
for help on using the changeset viewer.