diff options
| author | JosJuice <josjuice@gmail.com> | 2025-11-01 10:05:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-01 10:05:11 +0100 |
| commit | 828e72d604217d19e4b6875b7cac5d2e049ecedd (patch) | |
| tree | 094f23bc0186dc95bcdbf749fc46cb48c0f1b152 /Source/Core/Common | |
| parent | 998a3577cea04abaa1a41963bf58785bbcb39618 (diff) | |
| parent | 713dfb41dfa240a847cd9d07996bd25a38259d0c (diff) | |
Merge pull request #14034 from JoshuaVandaele/byeprofile
JitRegister: Remove OProfile profiler
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | Source/Core/Common/JitRegister.cpp | 24 |
2 files changed, 1 insertions, 27 deletions
diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index a2c4b6eb07..69ab3baf6a 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -350,10 +350,6 @@ if(USE_UPNP) target_link_libraries(common PRIVATE Miniupnpc::miniupnpc) endif() -if(OPROFILE_FOUND) - target_link_libraries(common PRIVATE OProfile::OProfile) -endif() - if(ENABLE_LLVM) find_package(LLVM CONFIG) if(LLVM_FOUND) diff --git a/Source/Core/Common/JitRegister.cpp b/Source/Core/Common/JitRegister.cpp index f05a9e2b4d..8e3211182f 100644 --- a/Source/Core/Common/JitRegister.cpp +++ b/Source/Core/Common/JitRegister.cpp @@ -21,19 +21,11 @@ #include <unistd.h> #endif -#if defined USE_OPROFILE && USE_OPROFILE -#include <opagent.h> -#endif - #if defined USE_VTUNE #include <jitprofiling.h> #pragma comment(lib, "jitprofiling.lib") #endif -#if defined USE_OPROFILE && USE_OPROFILE -static op_agent_t s_agent = nullptr; -#endif - static File::IOFile s_perf_map_file; namespace Common::JitRegister @@ -42,11 +34,6 @@ static bool s_is_enabled = false; void Init(const std::string& perf_dir) { -#if defined USE_OPROFILE && USE_OPROFILE - s_agent = op_open_agent(); - s_is_enabled = true; -#endif - if (!perf_dir.empty() || getenv("PERF_BUILDID_DIR")) { const std::string dir = perf_dir.empty() ? "/tmp" : perf_dir; @@ -61,11 +48,6 @@ void Init(const std::string& perf_dir) void Shutdown() { -#if defined USE_OPROFILE && USE_OPROFILE - op_close_agent(s_agent); - s_agent = nullptr; -#endif - #ifdef USE_VTUNE iJIT_NotifyEvent(iJVM_EVENT_TYPE_SHUTDOWN, nullptr); #endif @@ -83,15 +65,11 @@ bool IsEnabled() void Register(const void* base_address, u32 code_size, const std::string& symbol_name) { -#if !(defined USE_OPROFILE && USE_OPROFILE) && !defined(USE_VTUNE) +#ifndef USE_VTUNE if (!s_perf_map_file.IsOpen()) return; #endif -#if defined USE_OPROFILE && USE_OPROFILE - op_write_native_code(s_agent, symbol_name.c_str(), (u64)base_address, base_address, code_size); -#endif - #ifdef USE_VTUNE iJIT_Method_Load jmethod = {0}; jmethod.method_id = iJIT_GetNewMethodID(); |
