From ee8bcf2cccfcc822aea9288df3da8a345ae67467 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:21:10 -0700 Subject: JitCache: Software Profiling Restoration Rekindle software JIT profiling with a std::chrono conversion and a config connection. --- Source/Core/Common/CommonPaths.h | 1 + Source/Core/Common/FileUtil.cpp | 4 ++++ Source/Core/Common/FileUtil.h | 1 + 3 files changed, 6 insertions(+) (limited to 'Source/Core/Common') diff --git a/Source/Core/Common/CommonPaths.h b/Source/Core/Common/CommonPaths.h index 1dce5c47f5..bd0f946991 100644 --- a/Source/Core/Common/CommonPaths.h +++ b/Source/Core/Common/CommonPaths.h @@ -77,6 +77,7 @@ #define DUMP_SSL_DIR "SSL" #define DUMP_DEBUG_DIR "Debug" #define DUMP_DEBUG_BRANCHWATCH_DIR "BranchWatch" +#define DUMP_DEBUG_JITBLOCKS_DIR "JitBlocks" #define LOGS_DIR "Logs" #define MAIL_LOGS_DIR "Mail" #define SHADERS_DIR "Shaders" diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index 20c57c2b5a..a93db638df 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -859,6 +859,8 @@ static void RebuildUserDirectories(unsigned int dir_index) s_user_paths[D_DUMPDEBUG_IDX] = s_user_paths[D_DUMP_IDX] + DUMP_DEBUG_DIR DIR_SEP; s_user_paths[D_DUMPDEBUG_BRANCHWATCH_IDX] = s_user_paths[D_DUMPDEBUG_IDX] + DUMP_DEBUG_BRANCHWATCH_DIR DIR_SEP; + s_user_paths[D_DUMPDEBUG_JITBLOCKS_IDX] = + s_user_paths[D_DUMPDEBUG_IDX] + DUMP_DEBUG_JITBLOCKS_DIR DIR_SEP; s_user_paths[D_LOGS_IDX] = s_user_paths[D_USER_IDX] + LOGS_DIR DIR_SEP; s_user_paths[D_MAILLOGS_IDX] = s_user_paths[D_LOGS_IDX] + MAIL_LOGS_DIR DIR_SEP; s_user_paths[D_THEMES_IDX] = s_user_paths[D_USER_IDX] + THEMES_DIR DIR_SEP; @@ -938,6 +940,8 @@ static void RebuildUserDirectories(unsigned int dir_index) s_user_paths[D_DUMPDEBUG_IDX] = s_user_paths[D_DUMP_IDX] + DUMP_DEBUG_DIR DIR_SEP; s_user_paths[D_DUMPDEBUG_BRANCHWATCH_IDX] = s_user_paths[D_DUMPDEBUG_IDX] + DUMP_DEBUG_BRANCHWATCH_DIR DIR_SEP; + s_user_paths[D_DUMPDEBUG_JITBLOCKS_IDX] = + s_user_paths[D_DUMPDEBUG_IDX] + DUMP_DEBUG_JITBLOCKS_DIR DIR_SEP; s_user_paths[F_MEM1DUMP_IDX] = s_user_paths[D_DUMP_IDX] + MEM1_DUMP; s_user_paths[F_MEM2DUMP_IDX] = s_user_paths[D_DUMP_IDX] + MEM2_DUMP; s_user_paths[F_ARAMDUMP_IDX] = s_user_paths[D_DUMP_IDX] + ARAM_DUMP; diff --git a/Source/Core/Common/FileUtil.h b/Source/Core/Common/FileUtil.h index 975ab55256..7d2d5e737a 100644 --- a/Source/Core/Common/FileUtil.h +++ b/Source/Core/Common/FileUtil.h @@ -54,6 +54,7 @@ enum D_DUMPSSL_IDX, D_DUMPDEBUG_IDX, D_DUMPDEBUG_BRANCHWATCH_IDX, + D_DUMPDEBUG_JITBLOCKS_IDX, D_LOAD_IDX, D_LOGS_IDX, D_MAILLOGS_IDX, -- cgit v1.2.3