VirtualBox

Changeset 89696 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jun 15, 2021 9:53:06 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145144
Message:

Main/MachineDebugger: Implement API for taking a guest sample, bugref:10025

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MachineDebuggerImpl.h

    r85121 r89696  
    2727
    2828class Console;
     29class Progress;
    2930
    3031class ATL_NO_VTABLE MachineDebugger :
     
    134135                     com::Utf8Str &aStats);
    135136    HRESULT getCPULoad(ULONG aCpuId, ULONG *aPctExecuting, ULONG *aPctHalted, ULONG *aPctOther, LONG64 *aMsInterval) RT_OVERRIDE;
     137    HRESULT takeGuestSample(const com::Utf8Str &aFilename, ULONG aUsInterval, LONG64 aUsSampleTime, ComPtr<IProgress> &pProgress);
    136138
    137139    // private methods
     
    145147    typedef FNLOGGETSTR *PFNLOGGETSTR;
    146148    HRESULT i_logStringProps(PRTLOGGER pLogger, PFNLOGGETSTR pfnLogGetStr, const char *pszLogGetStr, Utf8Str *pstrSettings);
     149
     150    static DECLCALLBACK(int) i_dbgfProgressCallback(void *pvUser, unsigned uPercentage);
    147151
    148152    Console * const mParent;
     
    160164    bool mFlushMode;
    161165    /** @}  */
     166
     167    /** @name Sample report related things.
     168     * @{ */
     169    /** Sample report handle. */
     170    DBGFSAMPLEREPORT        m_hSampleReport;
     171    /** Progress object for the currently taken guest sample. */
     172    ComObjPtr<Progress>     m_Progress;
     173    /** Filename to dump the report to. */
     174    com::Utf8Str            m_strFilename;
     175    /** @} */
    162176};
    163177
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette