DolphinAnalytics: Move PerformanceSample to header

Avoid circular dependencies or forward declarations in upcoming commits.
This commit is contained in:
Dr. Dystopia 2021-01-28 09:22:40 -08:00
parent 5a263b6524
commit e86c9607fe
4 changed files with 16 additions and 6 deletions

View File

@ -512,6 +512,7 @@ add_library(core
NetworkCaptureLogger.h
PatchEngine.cpp
PatchEngine.h
PerformanceSample.h
PowerPC/BreakPoints.cpp
PowerPC/BreakPoints.h
PowerPC/CachedInterpreter/CachedInterpreter_Disassembler.cpp

View File

@ -13,6 +13,8 @@
#include "Common/CommonTypes.h"
#include "Common/Config/Config.h"
#include "Core/PerformanceSample.h"
#if defined(ANDROID)
#include <functional>
#endif
@ -138,12 +140,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.
//

View File

@ -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;
};

View File

@ -459,6 +459,7 @@
<ClInclude Include="Core\NetPlayServer.h" />
<ClInclude Include="Core\NetworkCaptureLogger.h" />
<ClInclude Include="Core\PatchEngine.h" />
<ClInclude Include="Core\PerformanceSample.h" />
<ClInclude Include="Core\PowerPC\BreakPoints.h" />
<ClInclude Include="Core\PowerPC\CachedInterpreter\CachedInterpreter.h" />
<ClInclude Include="Core\PowerPC\CachedInterpreter\CachedInterpreterBlockCache.h" />