aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/gsp_gpu.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-08-17 18:25:21 -0300
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-08-24 22:16:28 -0300
commit424b0fa64658905462978d0525ae8c5df3e2fef5 (patch)
treea1651d48113413e2de1e6e309362511b1ff7ffa8 /src/core/hle/service/gsp_gpu.cpp
parent2436b1c104ac1cb9753dfeb2af497ffa9ef2e505 (diff)
Integrate the MicroProfile profiling library
This brings goodies such as a configurable user interface and multi-threaded timeline view.
Diffstat (limited to 'src/core/hle/service/gsp_gpu.cpp')
-rw-r--r--src/core/hle/service/gsp_gpu.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp
index fde508a132..c3d0d28a5f 100644
--- a/src/core/hle/service/gsp_gpu.cpp
+++ b/src/core/hle/service/gsp_gpu.cpp
@@ -3,6 +3,7 @@
// Refer to the license.txt file included.
#include "common/bit_field.h"
+#include "common/microprofile.h"
#include "core/memory.h"
#include "core/hle/kernel/event.h"
@@ -229,6 +230,10 @@ void SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) {
if (Pica::g_debug_context)
Pica::g_debug_context->OnEvent(Pica::DebugContext::Event::BufferSwapped, nullptr);
+
+ if (screen_id == 0) {
+ MicroProfileFlip();
+ }
}
/**