Changeset 5190 in vbox
- Timestamp:
- Oct 8, 2007 6:27:49 PM (17 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineDebuggerImpl.cpp
r4071 r5190 131 131 132 132 /** 133 * Resets VM statistics 134 * 135 * @returns COM status code 133 * Resets VM statistics. 134 * 135 * @returns COM status code. 136 136 */ 137 137 STDMETHODIMP MachineDebugger::ResetStats() … … 144 144 145 145 /** 146 * Dumps VM statistics to the log 147 * 148 * @returns COM status code 146 * Dumps VM statistics to the log. 147 * 148 * @returns COM status code. 149 149 */ 150 150 STDMETHODIMP MachineDebugger::DumpStats() … … 153 153 if (pVM.isOk()) 154 154 STAMR3Dump(pVM, NULL); 155 return S_OK; 156 } 157 158 /** 159 * Get the VM statistics in an XML format. 160 * 161 * @returns COM status code. 162 * @param aPattern The selection pattern. A bit similar to filename globbing. 163 * @param aWithDescriptions Whether to include the descriptions. 164 * @param aStats The XML document containing the statistics. 165 */ 166 STDMETHODIMP MachineDebugger::GetStats(INPTR BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats) 167 { 168 Console::SafeVMPtrQuiet pVM (mParent); 169 if (!pVM.isOk()) 170 return E_FAIL; 171 172 char *pszSnapshot; 173 int vrc = STAMR3Snapshot(pVM, Utf8Str(aPattern).raw(), &pszSnapshot, NULL, aWithDescriptions); 174 if (RT_FAILURE(vrc)) 175 return vrc == VERR_NO_MEMORY ? E_OUTOFMEMORY : E_FAIL; 176 177 /** @todo this is horribly inefficient! And it's kinda difficult to tell whether it failed... 178 * Must use UTF-8 or ASCII here and completely avoid these two extra copy operations. 179 * Until that's done, this method is kind of useless for debugger statistics GUI because 180 * of the amount statistics in a debug build. */ 181 Bstr(pszSnapshot).cloneTo(aStats); 182 155 183 return S_OK; 156 184 } … … 480 508 /** 481 509 * Returns the current virtual time rate. 482 * 510 * 483 511 * @returns COM status code. 484 512 * @param pct Where to store the rate. … … 502 530 /** 503 531 * Returns the current virtual time rate. 504 * 532 * 505 533 * @returns COM status code. 506 534 * @param pct Where to store the rate. -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r5171 r5190 18 18 * out/<platform>/bin/sdk/idl/VirtualBox.idl 19 19 * (MS COM interface definition file for Main API) 20 * 20 * 21 21 * 2. src/VBox/Main/idl/xpidl.xsl => 22 22 * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl … … 42 42 * 43 43 Copyright (C) 2006-2007 innotek GmbH 44 44 45 45 This file is part of VirtualBox Open Source Edition (OSE), as 46 46 available from http://www.virtualbox.org. This file is free software; … … 398 398 <desc> 399 399 Scope of the operation. 400 400 401 401 A generic enumeration used in various methods to define the action or 402 402 argument scope. … … 498 498 <const name="MaxVal" value="17"/> 499 499 </enum> 500 500 501 501 <!-- 502 502 // IVirtualBoxErrorInfo … … 1617 1617 space of the session object. There can be only one direct 1618 1618 session open at a time for every virtual machine. 1619 1619 1620 1620 Upon successful return, the session object can be used to 1621 1621 get access to the machine and to the VM console. … … 1647 1647 caller (using the IConsole interface); however, within the remote 1648 1648 session context, not all VM settings are available for modification. 1649 1649 1650 1650 This operation can take some time, so the progress object 1651 1651 is returned to let the caller be informed when the session is … … 5060 5060 <li> 5061 5061 <i>Custom HardDisk</i>, a disk accessed via a plugin which is loaded 5062 when the disk is accessed (represented by the 5062 when the disk is accessed (represented by the 5063 5063 <link to="ICustomHardDisk"/> interface). 5064 5064 </li> … … 6623 6623 to="IFramebuffer::requestResize()"/>. 6624 6624 6625 See also www.fourcc.org for more informantion about FOURCC pixel formats. 6625 See also www.fourcc.org for more informantion about FOURCC pixel formats. 6626 6626 </desc> 6627 6627 <const name="PixelFormatOpaque" value="0xFFFFFFFF"> … … 6679 6679 This attribute must never return <link 6680 6680 to="PixelFormat::PixelFormatOpaque"/> -- the format of the buffer 6681 <link to="#address"/> points to must be always known. 6681 <link to="#address"/> points to must be always known. 6682 6682 </note> 6683 6683 </desc> … … 6688 6688 Defines whether this framebuffer uses the virtual video card's memory 6689 6689 buffer (guest VRAM) directly or not. See <link 6690 to="IFramebuffer::requestResize()"/> for more information. 6690 to="IFramebuffer::requestResize()"/> for more information. 6691 6691 </desc> 6692 6692 </attribute> … … 7098 7098 should issue the request and wait for a resolution change and 7099 7099 after a timeout retry. 7100 7100 7101 7101 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel 7102 7102 parameters means that the corresponding values should be taken from the … … 7446 7446 <interface 7447 7447 name="IMachineDebugger" extends="$unknown" 7448 uuid=" 358b05cd-6d43-42b9-9c2b-75d466a58cfc"7448 uuid="aabb012b-36c7-4d31-89fd-313f7d056034" 7449 7449 wsmap="suppress" 7450 7450 > … … 7459 7459 Dumps VM statistics. 7460 7460 </desc> 7461 </method> 7462 7463 <method name="getStats"> 7464 <desc> 7465 Get the VM statistics in a XMLish format. 7466 </desc> 7467 <param name="pattern" type="wstring" dir="in"> 7468 <desc>The selection pattern. A bit similar to filename globbing.</desc> 7469 </param> 7470 <param name="withDescriptions" type="boolean" dir="in"> 7471 <desc>Whether to include the descriptions.</desc> 7472 </param> 7473 <param name="stats" type="wstring" dir="out"> 7474 <desc>The XML document containing the statistics.</desc> 7475 </param> 7461 7476 </method> 7462 7477 … … 8314 8329 <li>Global definitions</li> 8315 8330 </ol> 8316 8331 8317 8332 For example, if MyMachine has a shared folder named 8318 8333 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then cretaing a … … 8325 8340 the prevoious (permanent) definition of <tt>C_DRIVE</tt> that points 8326 8341 to <tt>C:\\</tt> if it still exists. 8327 8342 8328 8343 Note that permanent and transient shared folders of different machines 8329 8344 are in different name spaces, so they don't overlap and don't need to -
trunk/src/VBox/Main/include/MachineDebuggerImpl.h
r4071 r5190 70 70 STDMETHOD(ResetStats()); 71 71 STDMETHOD(DumpStats()); 72 STDMETHOD(GetStats(INPTR BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats)); 73 72 74 73 75 // "public-private methods"
Note:
See TracChangeset
for help on using the changeset viewer.