diff options
Diffstat (limited to 'src/core/hle/hle.cpp')
| -rw-r--r-- | src/core/hle/hle.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp index c6764a529..1aaeaa9c9 100644 --- a/src/core/hle/hle.cpp +++ b/src/core/hle/hle.cpp | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | #include <vector> | 5 | #include <vector> |
| 6 | 6 | ||
| 7 | #include "common/profiler.h" | ||
| 8 | |||
| 7 | #include "core/arm/arm_interface.h" | 9 | #include "core/arm/arm_interface.h" |
| 8 | #include "core/mem_map.h" | 10 | #include "core/mem_map.h" |
| 9 | #include "core/hle/hle.h" | 11 | #include "core/hle/hle.h" |
| @@ -16,6 +18,8 @@ | |||
| 16 | 18 | ||
| 17 | namespace HLE { | 19 | namespace HLE { |
| 18 | 20 | ||
| 21 | Common::Profiling::TimingCategory profiler_svc("SVC Calls"); | ||
| 22 | |||
| 19 | static std::vector<ModuleDef> g_module_db; | 23 | static std::vector<ModuleDef> g_module_db; |
| 20 | 24 | ||
| 21 | bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread | 25 | bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread |
| @@ -30,6 +34,8 @@ static const FunctionDef* GetSVCInfo(u32 opcode) { | |||
| 30 | } | 34 | } |
| 31 | 35 | ||
| 32 | void CallSVC(u32 opcode) { | 36 | void CallSVC(u32 opcode) { |
| 37 | Common::Profiling::ScopeTimer timer_svc(profiler_svc); | ||
| 38 | |||
| 33 | const FunctionDef *info = GetSVCInfo(opcode); | 39 | const FunctionDef *info = GetSVCInfo(opcode); |
| 34 | 40 | ||
| 35 | if (!info) { | 41 | if (!info) { |