Changeset 42665 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 7, 2012 2:55:09 PM (12 years ago)
- 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 305 305 , mRecompileSupervisor(false) 306 306 , mRecompileUser(false) 307 , mWarpPct(100) 307 308 , mVerString("1.0") 308 309 , m3DAvailable(false) … … 4460 4461 else if (!::strcmp(arg, "--recompile-all")) 4461 4462 mDisablePatm = mDisableCsam = mRecompileSupervisor = mRecompileUser = true; 4463 else if (!::strcmp(arg, "--warp-pct")) 4464 { 4465 if (++i < argc) 4466 mWarpPct = RTStrToUInt32(qApp->argv() [i]); 4467 } 4462 4468 #ifdef VBOX_WITH_DEBUGGER_GUI 4463 4469 else if (!::strcmp (arg, "-dbg") || !::strcmp (arg, "--dbg")) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r42526 r42665 131 131 bool isSupervisorCodeExecedRecompiled() const { return mRecompileSupervisor; } 132 132 bool isUserCodeExecedRecompiled() const { return mRecompileUser; } 133 bool isDefaultWarpPct() const { return mWarpPct == 100; } 134 uint32_t getWarpPct() const { return mWarpPct; } 133 135 134 136 #ifdef VBOX_WITH_DEBUGGER_GUI … … 488 490 /** The --recompile-user option. */ 489 491 bool mRecompileUser; 492 /** The --warp-factor option value. */ 493 uint32_t mWarpPct; 490 494 491 495 #ifdef VBOX_WITH_DEBUGGER_GUI -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r41689 r42665 280 280 " --recompile-all recompiled execution of all code, with disabled\n" 281 281 " code patching and scanning\n" 282 " --warp-pct <pct> time warp factor, 100%% (= 1.0) = normal speed\n" 282 283 " (*) For AMD-V/VT-x setups the effect is --recompile-all.\n" 283 284 "\n" -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r41689 r42665 172 172 if (vboxGlobal().isUserCodeExecedRecompiled()) 173 173 debugger.SetRecompileUser(true); 174 if (!vboxGlobal().isDefaultWarpPct()) 175 debugger.SetVirtualTimeRate(vboxGlobal().getWarpPct()); 174 176 } 175 177
Note:
See TracChangeset
for help on using the changeset viewer.