mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 08:38:20 -05:00
Add profiling infrastructure and widget
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "common/profiler.h"
|
||||
|
||||
#include "core/arm/arm_interface.h"
|
||||
#include "core/mem_map.h"
|
||||
#include "core/hle/hle.h"
|
||||
@ -19,6 +21,8 @@
|
||||
|
||||
namespace HLE {
|
||||
|
||||
Common::Profiling::TimingCategory profiler_svc("SVC Calls");
|
||||
|
||||
static std::vector<ModuleDef> g_module_db;
|
||||
|
||||
bool g_reschedule = false; ///< If true, immediately reschedules the CPU to a new thread
|
||||
@ -33,6 +37,8 @@ static const FunctionDef* GetSVCInfo(u32 opcode) {
|
||||
}
|
||||
|
||||
void CallSVC(u32 opcode) {
|
||||
Common::Profiling::ScopeTimer timer_svc(profiler_svc);
|
||||
|
||||
const FunctionDef *info = GetSVCInfo(opcode);
|
||||
|
||||
if (!info) {
|
||||
|
Reference in New Issue
Block a user