diff options
| author | 2015-08-17 18:25:21 -0300 | |
|---|---|---|
| committer | 2015-08-24 22:16:28 -0300 | |
| commit | 0fcabd2b11a5b1d4d16f6f6bdf1efd54d2c45237 (patch) | |
| tree | a1651d48113413e2de1e6e309362511b1ff7ffa8 /src/core/arm | |
| 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 'src/core/arm')
| -rw-r--r-- | src/core/arm/dyncom/arm_dyncom_interpreter.cpp | 7 |
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 | ||
| 3526 | MICROPROFILE_DEFINE(DynCom_Decode, "DynCom", "Decode", MP_RGB(255, 64, 64)); | ||
| 3527 | |||
| 3525 | static int InterpreterTranslate(ARMul_State* cpu, int& bb_start, u32 addr) { | 3528 | static 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 | ||
| 3595 | MICROPROFILE_DEFINE(DynCom_Execute, "DynCom", "Execute", MP_RGB(255, 0, 0)); | ||
| 3596 | |||
| 3591 | unsigned InterpreterMainLoop(ARMul_State* cpu) { | 3597 | unsigned 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 |