Changeset 62598 in vbox
- Timestamp:
- Jul 27, 2016 2:42:21 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109167
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r62300 r62598 17599 17599 uuid="9c0f5269-47ae-ee34-c2fe-53a16e388925" 17600 17600 wsmap="managed" 17601 reservedMethods="16" reservedAttributes="1 6"17601 reservedMethods="16" reservedAttributes="15" 17602 17602 > 17603 17603 <method name="dumpGuestCore"> … … 18079 18079 the details of this interface. 18080 18080 </desc> 18081 </attribute> 18082 18083 <attribute name="uptime" type="long long" readonly="yes"> 18084 <desc>VM uptime in milliseconds, i.e. time in which it could have been 18085 executing guest code. Excludes the time when the VM was paused.</desc> 18081 18086 </attribute> 18082 18087 -
trunk/src/VBox/Main/include/MachineDebuggerImpl.h
r62485 r62598 76 76 HRESULT setVirtualTimeRate(ULONG aVirtualTimeRate); 77 77 HRESULT getVM(LONG64 *aVM); 78 HRESULT getUptime(LONG64 *aUptime); 78 79 79 80 // wrapped IMachineDeugger properties … … 130 131 131 132 // private methods 133 static DECLCALLBACK(int) i_getUptime(MachineDebugger *, PUVM pUVM, LONG64 *pUptime); 132 134 bool i_queueSettings() const; 133 135 HRESULT i_getEmExecPolicyProperty(EMEXECPOLICY enmPolicy, BOOL *pfEnforced); -
trunk/src/VBox/Main/src-client/MachineDebuggerImpl.cpp
r62485 r62598 71 71 * @param aParent handle of our parent object 72 72 */ 73 HRESULT MachineDebugger::init 73 HRESULT MachineDebugger::init(Console *aParent) 74 74 { 75 75 LogFlowThisFunc(("aParent=%p\n", aParent)); … … 302 302 Console::SafeVMPtrQuiet ptrVM(mParent); 303 303 if (ptrVM.isOk()) 304 *aPATMEnabled = PATMR3IsEnabled 304 *aPATMEnabled = PATMR3IsEnabled(ptrVM.rawUVM()); 305 305 else 306 306 #endif … … 750 750 * 751 751 * @returns COM status code 752 * @param a _u64VmWhere to store the vm handle. Since there is no752 * @param aVM Where to store the vm handle. Since there is no 753 753 * uintptr_t in COM, we're using the max integer. 754 754 * (No, ULONG is not pointer sized!) … … 772 772 * after we return from this method. 773 773 */ 774 return hrc; 775 } 776 777 /** 778 * Get the VM uptime in milliseconds. 779 * 780 * @returns COM status code 781 * @param aUptime Where to store the uptime. 782 */ 783 HRESULT MachineDebugger::getUptime(LONG64 *aUptime) 784 { 785 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 786 787 Console::SafeVMPtr ptrVM(mParent); 788 HRESULT hrc = ptrVM.rc(); 789 if (SUCCEEDED(hrc)) 790 *aUptime = (int64_t)TMR3TimeVirtGetMilli(ptrVM.rawUVM()); 791 774 792 return hrc; 775 793 } … … 1537 1555 HRESULT MachineDebugger::getStats(const com::Utf8Str &aPattern, BOOL aWithDescriptions, com::Utf8Str &aStats) 1538 1556 { 1539 Console::SafeVMPtrQuiet ptrVM 1557 Console::SafeVMPtrQuiet ptrVM(mParent); 1540 1558 1541 1559 if (!ptrVM.isOk())
Note:
See TracChangeset
for help on using the changeset viewer.