summaryrefslogtreecommitdiff
path: root/src/core/hle/hle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/hle.cpp')
-rw-r--r--src/core/hle/hle.cpp6
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
20namespace HLE { 22namespace HLE {
21 23
24Common::Profiling::TimingCategory profiler_svc("SVC Calls");
25
22static std::vector<ModuleDef> g_module_db; 26static std::vector<ModuleDef> g_module_db;
23 27
24bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread 28bool 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
35void CallSVC(u32 opcode) { 39void 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) {