DolphinAnalytics: Move PerformanceSample to header

Avoid circular dependencies or forward declarations in upcoming commits.
This commit is contained in:
Dentomologist 2021-01-28 09:22:40 -08:00 committed by Dr. Dystopia
commit 41b0c09486
4 changed files with 16 additions and 6 deletions

View file

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

View file

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

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

@ -437,6 +437,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" />