diff options
| author | 2015-08-17 18:25:21 -0300 | |
|---|---|---|
| committer | 2015-08-24 22:16:28 -0300 | |
| commit | 0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237 (patch) | |
| tree | a1651d48113413e2de1e6e309362511b1ff7ffa8 /src/citra/citra.cpp | |
| parent | citra-qt: Add helper function to get a monospace QFont (diff) | |
| download | yuzu-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/citra.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index d6fcb66a5..46f4a07c9 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp | |||
| @@ -6,6 +6,9 @@ | |||
| 6 | #include <thread> | 6 | #include <thread> |
| 7 | #include <iostream> | 7 | #include <iostream> |
| 8 | 8 | ||
| 9 | // This needs to be included before getopt.h because the latter #defines symbols used by it | ||
| 10 | #include "common/microprofile.h" | ||
| 11 | |||
| 9 | #ifdef _MSC_VER | 12 | #ifdef _MSC_VER |
| 10 | #include <getopt.h> | 13 | #include <getopt.h> |
| 11 | #else | 14 | #else |
| @@ -59,6 +62,8 @@ int main(int argc, char **argv) { | |||
| 59 | Log::Filter log_filter(Log::Level::Debug); | 62 | Log::Filter log_filter(Log::Level::Debug); |
| 60 | Log::SetFilter(&log_filter); | 63 | Log::SetFilter(&log_filter); |
| 61 | 64 | ||
| 65 | MicroProfileOnThreadCreate("EmuThread"); | ||
| 66 | |||
| 62 | if (boot_filename.empty()) { | 67 | if (boot_filename.empty()) { |
| 63 | LOG_CRITICAL(Frontend, "Failed to load ROM: No ROM specified"); | 68 | LOG_CRITICAL(Frontend, "Failed to load ROM: No ROM specified"); |
| 64 | return -1; | 69 | return -1; |
| @@ -89,5 +94,7 @@ int main(int argc, char **argv) { | |||
| 89 | 94 | ||
| 90 | delete emu_window; | 95 | delete emu_window; |
| 91 | 96 | ||
| 97 | MicroProfileShutdown(); | ||
| 98 | |||
| 92 | return 0; | 99 | return 0; |
| 93 | } | 100 | } |