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 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
17namespace HLE { 19namespace HLE {
18 20
21Common::Profiling::TimingCategory profiler_svc("SVC Calls");
22
19static std::vector<ModuleDef> g_module_db; 23static std::vector<ModuleDef> g_module_db;
20 24
21bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread 25bool 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
32void CallSVC(u32 opcode) { 36void 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) {