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 b0066e15e..c925279da 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" |
| @@ -19,6 +21,8 @@ | |||
| 19 | 21 | ||
| 20 | namespace HLE { | 22 | namespace HLE { |
| 21 | 23 | ||
| 24 | Common::Profiling::TimingCategory profiler_svc("SVC Calls"); | ||
| 25 | |||
| 22 | static std::vector<ModuleDef> g_module_db; | 26 | static std::vector<ModuleDef> g_module_db; |
| 23 | 27 | ||
| 24 | bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread | 28 | bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread |
| @@ -33,6 +37,8 @@ static const FunctionDef* GetSVCInfo(u32 opcode) { | |||
| 33 | } | 37 | } |
| 34 | 38 | ||
| 35 | void CallSVC(u32 opcode) { | 39 | void CallSVC(u32 opcode) { |
| 40 | Common::Profiling::ScopeTimer timer_svc(profiler_svc); | ||
| 41 | |||
| 36 | const FunctionDef *info = GetSVCInfo(opcode); | 42 | const FunctionDef *info = GetSVCInfo(opcode); |
| 37 | 43 | ||
| 38 | if (!info) { | 44 | if (!info) { |