summaryrefslogtreecommitdiff
path: root/src/citra_qt/bootmanager.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-08-17 18:25:21 -0300
committerGravatar Yuri Kunde Schlesner2015-08-24 22:16:28 -0300
commit0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237 (patch)
treea1651d48113413e2de1e6e309362511b1ff7ffa8 /src/citra_qt/bootmanager.cpp
parentcitra-qt: Add helper function to get a monospace QFont (diff)
downloadyuzu-0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237.tar.gz
yuzu-0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237.tar.xz
yuzu-0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237.zip
Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and multi-threaded timeline view.
Diffstat (limited to '')
-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