summaryrefslogtreecommitdiff
path: root/src/core/arm
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/core/arm
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 'src/core/arm')
-rw-r--r--src/core/arm/dyncom/arm_dyncom_interpreter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
index 422e80b50..01c712f24 100644
--- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
+++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
@@ -9,6 +9,7 @@
9 9
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/microprofile.h"
12#include "common/profiler.h" 13#include "common/profiler.h"
13 14
14#include "core/memory.h" 15#include "core/memory.h"
@@ -3522,8 +3523,11 @@ enum {
3522 FETCH_EXCEPTION 3523 FETCH_EXCEPTION
3523}; 3524};
3524 3525
3526MICROPROFILE_DEFINE(DynCom_Decode, "DynCom", "Decode", MP_RGB(255, 64, 64));
3527
3525static int InterpreterTranslate(ARMul_State* cpu, int& bb_start, u32 addr) { 3528static int InterpreterTranslate(ARMul_State* cpu, int& bb_start, u32 addr) {
3526 Common::Profiling::ScopeTimer timer_decode(profile_decode); 3529 Common::Profiling::ScopeTimer timer_decode(profile_decode);
3530 MICROPROFILE_SCOPE(DynCom_Decode);
3527 3531
3528 // Decode instruction, get index 3532 // Decode instruction, get index
3529 // Allocate memory and init InsCream 3533 // Allocate memory and init InsCream
@@ -3588,8 +3592,11 @@ static int clz(unsigned int x) {
3588 return n; 3592 return n;
3589} 3593}
3590 3594
3595MICROPROFILE_DEFINE(DynCom_Execute, "DynCom", "Execute", MP_RGB(255, 0, 0));
3596
3591unsigned InterpreterMainLoop(ARMul_State* cpu) { 3597unsigned InterpreterMainLoop(ARMul_State* cpu) {
3592 Common::Profiling::ScopeTimer timer_execute(profile_execute); 3598 Common::Profiling::ScopeTimer timer_execute(profile_execute);
3599 MICROPROFILE_SCOPE(DynCom_Execute);
3593 3600
3594 #undef RM 3601 #undef RM
3595 #undef RS 3602 #undef RS