diff options
| author | 2015-08-24 18:30:11 -0700 | |
|---|---|---|
| committer | 2015-08-24 18:30:11 -0700 | |
| commit | ac0104b8b0584023cfbd7a4800f1ca1db890188f (patch) | |
| tree | a1651d48113413e2de1e6e309362511b1ff7ffa8 /src/core/hle/svc.cpp | |
| parent | Merge pull request #1063 from Subv/hw_renderer_debug_fb (diff) | |
| parent | Integrate the MicroProfile profiling library (diff) | |
| download | yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.gz yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.tar.xz yuzu-ac0104b8b0584023cfbd7a4800f1ca1db890188f.zip | |
Merge pull request #1048 from yuriks/microprofile
Integrate the MicroProfile profiling library
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 89ac45a6f..19f750d72 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include <map> | 5 | #include <map> |
| 6 | 6 | ||
| 7 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 8 | #include "common/microprofile.h" | ||
| 8 | #include "common/profiler.h" | 9 | #include "common/profiler.h" |
| 9 | #include "common/string_util.h" | 10 | #include "common/string_util.h" |
| 10 | #include "common/symbols.h" | 11 | #include "common/symbols.h" |
| @@ -969,8 +970,11 @@ static const FunctionDef* GetSVCInfo(u32 func_num) { | |||
| 969 | return &SVC_Table[func_num]; | 970 | return &SVC_Table[func_num]; |
| 970 | } | 971 | } |
| 971 | 972 | ||
| 973 | MICROPROFILE_DEFINE(Kernel_SVC, "Kernel", "SVC", MP_RGB(70, 200, 70)); | ||
| 974 | |||
| 972 | void CallSVC(u32 immediate) { | 975 | void CallSVC(u32 immediate) { |
| 973 | Common::Profiling::ScopeTimer timer_svc(profiler_svc); | 976 | Common::Profiling::ScopeTimer timer_svc(profiler_svc); |
| 977 | MICROPROFILE_SCOPE(Kernel_SVC); | ||
| 974 | 978 | ||
| 975 | const FunctionDef* info = GetSVCInfo(immediate); | 979 | const FunctionDef* info = GetSVCInfo(immediate); |
| 976 | if (info) { | 980 | if (info) { |