Adding --show_profiler to show profiler by default, changing hotkey to F3.

This commit is contained in:
Ben Vanik
2015-07-25 12:34:15 -07:00
parent 8ce6765233
commit ea4ec28acc
4 changed files with 18 additions and 8 deletions

View File

@@ -80,6 +80,10 @@ bool EmulatorWindow::Initialize() {
CpuTimeScalarSetDouble();
} break;
case 0x72: { // F3
Profiler::ToggleDisplay();
} break;
case 0x73: { // VK_F4
GpuTraceFrame();
} break;
@@ -135,7 +139,7 @@ bool EmulatorWindow::Initialize() {
cpu_menu->AddChild(MenuItem::Create(MenuItem::Type::kSeparator));
{
cpu_menu->AddChild(MenuItem::Create(MenuItem::Type::kString,
L"Toggle Profiler &Display", L"Tab",
L"Toggle Profiler &Display", L"F3",
[]() { Profiler::ToggleDisplay(); }));
cpu_menu->AddChild(MenuItem::Create(MenuItem::Type::kString,
L"&Pause/Resume Profiler", L"`",