diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt index f7b43c463e..7dad798fc7 100644 --- a/Source/Core/Core/CMakeLists.txt +++ b/Source/Core/Core/CMakeLists.txt @@ -483,6 +483,7 @@ add_library(core NetworkCaptureLogger.h PatchEngine.cpp PatchEngine.h + PerformanceSample.h PowerPC/BreakPoints.cpp PowerPC/BreakPoints.h PowerPC/CachedInterpreter/CachedInterpreter_Disassembler.cpp diff --git a/Source/Core/Core/DolphinAnalytics.h b/Source/Core/Core/DolphinAnalytics.h index 75bd8d9f88..400e73e6ed 100644 --- a/Source/Core/Core/DolphinAnalytics.h +++ b/Source/Core/Core/DolphinAnalytics.h @@ -12,6 +12,8 @@ #include "Common/Analytics.h" #include "Common/CommonTypes.h" +#include "Core/PerformanceSample.h" + #if defined(ANDROID) #include #endif @@ -134,12 +136,6 @@ public: // Get the base builder for building a report const Common::AnalyticsReportBuilder& BaseBuilder() const { return m_base_builder; } - struct PerformanceSample - { - double speed_ratio; // See SystemTimers::GetEstimatedEmulationPerformance(). - int num_prims; - int num_draw_calls; - }; // Reports performance information. This method performs its own throttling / aggregation -- // calling it does not guarantee when a report will actually be sent. // diff --git a/Source/Core/Core/PerformanceSample.h b/Source/Core/Core/PerformanceSample.h new file mode 100644 index 0000000000..34e289408a --- /dev/null +++ b/Source/Core/Core/PerformanceSample.h @@ -0,0 +1,12 @@ +// Copyright 2021 Dolphin Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. + +#pragma once + +struct PerformanceSample +{ + double speed_ratio; // See SystemTimers::GetEstimatedEmulationPerformance(). + int num_prims; + int num_draw_calls; +}; diff --git a/Source/Core/DolphinLib.props b/Source/Core/DolphinLib.props index d7bb245d29..09c7726310 100644 --- a/Source/Core/DolphinLib.props +++ b/Source/Core/DolphinLib.props @@ -437,6 +437,7 @@ +