VirtualBox

Ignore:
Timestamp:
Jun 10, 2013 11:43:03 AM (11 years ago)
Author:
vboxsync
Message:

Main: indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/win/PerformanceWin.cpp

    r46328 r46460  
    6363    virtual int getRawHostCpuLoad(uint64_t *user, uint64_t *kernel, uint64_t *idle);
    6464    virtual int getRawProcessCpuLoad(RTPROCESS process, uint64_t *user, uint64_t *kernel, uint64_t *total);
     65
    6566private:
    6667    struct VMProcessStats
     
    7475    typedef std::map<RTPROCESS, VMProcessStats> VMProcessMap;
    7576
    76     VMProcessMap       mProcessStats;
    77 
    78     typedef BOOL (WINAPI *PFNGST)(
    79         LPFILETIME lpIdleTime,
    80         LPFILETIME lpKernelTime,
    81         LPFILETIME lpUserTime);
    82     typedef NTSTATUS (WINAPI *PFNNQSI)(
    83         SYSTEM_INFORMATION_CLASS SystemInformationClass,
    84         PVOID SystemInformation,
    85         ULONG SystemInformationLength,
    86         PULONG ReturnLength);
     77    VMProcessMap mProcessStats;
     78
     79    typedef BOOL (WINAPI *PFNGST)(LPFILETIME lpIdleTime,
     80                                  LPFILETIME lpKernelTime,
     81                                  LPFILETIME lpUserTime);
     82    typedef NTSTATUS (WINAPI *PFNNQSI)(SYSTEM_INFORMATION_CLASS SystemInformationClass,
     83                                       PVOID SystemInformation,
     84                                       ULONG SystemInformationLength,
     85                                       PULONG ReturnLength);
    8786
    8887    PFNGST  mpfnGetSystemTimes;
     
    10099CollectorWin::CollectorWin() : CollectorHAL(), mhNtDll(0)
    101100{
    102     mpfnGetSystemTimes = (PFNGST)GetProcAddress(
    103         GetModuleHandle(TEXT("kernel32.dll")),
    104         "GetSystemTimes");
     101    mpfnGetSystemTimes = (PFNGST)GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")),
     102                                                "GetSystemTimes");
    105103    if (!mpfnGetSystemTimes)
    106104    {
     
    114112        }
    115113        else if (!(mpfnNtQuerySystemInformation = (PFNNQSI)GetProcAddress(mhNtDll,
    116             "NtQuerySystemInformation")))
     114                                                                          "NtQuerySystemInformation")))
    117115        {
    118116            LogRel(("Neither GetSystemTimes() nor NtQuerySystemInformation() is"
     
    289287
    290288    LONG ns = CallNtPowerInformation(ProcessorInformation, NULL, 0, ppi,
    291         nProcessors * sizeof(PROCESSOR_POWER_INFORMATION));
     289                                     nProcessors * sizeof(PROCESSOR_POWER_INFORMATION));
    292290    if (ns)
    293291    {
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