VirtualBox

Changeset 42665 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 7, 2012 2:55:09 PM (12 years ago)
Author:
vboxsync
Message:

VirtualBox(GUI): Added --warp-pct <pct> factor for debugging purposes.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r42526 r42665  
    305305    , mRecompileSupervisor(false)
    306306    , mRecompileUser(false)
     307    , mWarpPct(100)
    307308    , mVerString("1.0")
    308309    , m3DAvailable(false)
     
    44604461        else if (!::strcmp(arg, "--recompile-all"))
    44614462            mDisablePatm = mDisableCsam = mRecompileSupervisor = mRecompileUser = true;
     4463        else if (!::strcmp(arg, "--warp-pct"))
     4464        {
     4465            if (++i < argc)
     4466                mWarpPct = RTStrToUInt32(qApp->argv() [i]);
     4467        }
    44624468#ifdef VBOX_WITH_DEBUGGER_GUI
    44634469        else if (!::strcmp (arg, "-dbg") || !::strcmp (arg, "--dbg"))
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r42526 r42665  
    131131    bool isSupervisorCodeExecedRecompiled() const { return mRecompileSupervisor; }
    132132    bool isUserCodeExecedRecompiled()       const { return mRecompileUser; }
     133    bool isDefaultWarpPct() const { return mWarpPct == 100; }
     134    uint32_t getWarpPct()       const { return mWarpPct; }
    133135
    134136#ifdef VBOX_WITH_DEBUGGER_GUI
     
    488490    /** The --recompile-user option. */
    489491    bool mRecompileUser;
     492    /** The --warp-factor option value. */
     493    uint32_t mWarpPct;
    490494
    491495#ifdef VBOX_WITH_DEBUGGER_GUI
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r41689 r42665  
    280280            "  --recompile-all            recompiled execution of all code, with disabled\n"
    281281            "                             code patching and scanning\n"
     282            "  --warp-pct <pct>           time warp factor, 100%% (= 1.0) = normal speed\n"
    282283            "  (*) For AMD-V/VT-x setups the effect is --recompile-all.\n"
    283284            "\n"
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r41689 r42665  
    172172        if (vboxGlobal().isUserCodeExecedRecompiled())
    173173            debugger.SetRecompileUser(true);
     174        if (!vboxGlobal().isDefaultWarpPct())
     175            debugger.SetVirtualTimeRate(vboxGlobal().getWarpPct());
    174176    }
    175177
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