Changeset 30958 in vbox
- Timestamp:
- Jul 21, 2010 1:17:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r30956 r30958 5321 5321 if (SUCCEEDED(rc)) 5322 5322 { 5323 #ifdef VBOX_WITH_RESOURCE_USAGE_API5324 registerMetrics(mParent->performanceCollector(), this, pid);5325 #endif /* VBOX_WITH_RESOURCE_USAGE_API */5326 5327 5323 /* 5328 5324 * Set the session state to Spawning to protect against subsequent … … 9949 9945 mData->mSession.mProgress->notifyComplete((HRESULT)iResult); 9950 9946 mData->mSession.mProgress.setNull(); 9947 9948 if (SUCCEEDED((HRESULT)iResult)) 9949 { 9950 #ifdef VBOX_WITH_RESOURCE_USAGE_API 9951 /* The VM has been powered up successfully, so it makes sense 9952 * now to offer the performance metrics for a running machine 9953 * object. Doing it earlier wouldn't be safe. */ 9954 registerMetrics(mParent->performanceCollector(), mPeer, 9955 mData->mSession.mPid); 9956 #endif /* VBOX_WITH_RESOURCE_USAGE_API */ 9957 9958 } 9951 9959 } 9952 9960 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.