summaryrefslogtreecommitdiff
path: root/src/core/hle/hle.cpp
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2015-03-07 15:30:40 +0100
committerGravatar Tony Wasserka2015-03-07 15:30:40 +0100
commit93e32bce72905ac1bd0a5e75066fda5e6b7bf250 (patch)
tree4530e9d8db22955416543899b6c0e59abf8b9732 /src/core/hle/hle.cpp
parentMerge pull request #630 from archshift/swap (diff)
parentProfiler: Implement QPCClock to get better precision on Win32 (diff)
downloadyuzu-93e32bce72905ac1bd0a5e75066fda5e6b7bf250.tar.gz
yuzu-93e32bce72905ac1bd0a5e75066fda5e6b7bf250.tar.xz
yuzu-93e32bce72905ac1bd0a5e75066fda5e6b7bf250.zip
Merge pull request #538 from yuriks/perf-stat
Add profiling infrastructure and widget
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) {