summaryrefslogtreecommitdiff
path: root/src/citra_qt/bootmanager.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-08-24 18:30:11 -0700
committerGravatar Yuri Kunde Schlesner2015-08-24 18:30:11 -0700
commitac0104b8b0584023cfbd7a4800f1ca1db890188f (patch)
treea1651d48113413e2de1e6e309362511b1ff7ffa8 /src/citra_qt/bootmanager.cpp
parentMerge pull request #1063 from Subv/hw_renderer_debug_fb (diff)
parentIntegrate the MicroProfile profiling library (diff)
downloadyuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.gz
yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.xz
yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.zip
Merge pull request #1048 from yuriks/microprofile
Integrate the MicroProfile profiling library
Diffstat (limited to 'src/citra_qt/bootmanager.cpp')
-rw-r--r--src/citra_qt/bootmanager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp
index a96fbea5f..f8aacb527 100644
--- a/src/citra_qt/bootmanager.cpp
+++ b/src/citra_qt/bootmanager.cpp
@@ -14,6 +14,7 @@
14#include "common/string_util.h" 14#include "common/string_util.h"
15#include "common/scm_rev.h" 15#include "common/scm_rev.h"
16#include "common/key_map.h" 16#include "common/key_map.h"
17#include "common/microprofile.h"
17 18
18#include "core/core.h" 19#include "core/core.h"
19#include "core/settings.h" 20#include "core/settings.h"
@@ -37,6 +38,8 @@ EmuThread::EmuThread(GRenderWindow* render_window) :
37void EmuThread::run() { 38void EmuThread::run() {
38 render_window->MakeCurrent(); 39 render_window->MakeCurrent();
39 40
41 MicroProfileOnThreadCreate("EmuThread");
42
40 stop_run = false; 43 stop_run = false;
41 44
42 // holds whether the cpu was running during the last iteration, 45 // holds whether the cpu was running during the last iteration,
@@ -69,6 +72,8 @@ void EmuThread::run() {
69 } 72 }
70 } 73 }
71 74
75 MicroProfileOnThreadExit();
76
72 render_window->moveContext(); 77 render_window->moveContext();
73} 78}
74 79