VirtualBox

Changeset 32649 in vbox


Ignore:
Timestamp:
Sep 20, 2010 5:22:38 PM (14 years ago)
Author:
vboxsync
Message:

Main/Machine: Move the code for registering the VM metrics to the right place. Previously it was only done when the VM was started through the API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r32398 r32649  
    1023910239        mData->mSession.mProgress->notifyComplete((HRESULT)iResult);
    1024010240        mData->mSession.mProgress.setNull();
    10241 
    10242         if (SUCCEEDED((HRESULT)iResult))
    10243         {
     10241    }
     10242
     10243    if (SUCCEEDED((HRESULT)iResult))
     10244    {
    1024410245#ifdef VBOX_WITH_RESOURCE_USAGE_API
    10245             /* The VM has been powered up successfully, so it makes sense
    10246              * now to offer the performance metrics for a running machine
    10247              * object. Doing it earlier wouldn't be safe. */
    10248             registerMetrics(mParent->performanceCollector(), mPeer,
    10249                             mData->mSession.mPid);
     10246        /* The VM has been powered up successfully, so it makes sense
     10247         * now to offer the performance metrics for a running machine
     10248         * object. Doing it earlier wouldn't be safe. */
     10249        registerMetrics(mParent->performanceCollector(), mPeer,
     10250                        mData->mSession.mPid);
    1025010251#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    10251 
    10252         }
    10253     }
     10252    }
     10253
    1025410254    return S_OK;
    1025510255}
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