mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-12 06:14:24 -05:00
DolphinAnalytics: Move PerformanceSample to header
Avoid circular dependencies or forward declarations in upcoming commits.
This commit is contained in:
parent
5a263b6524
commit
e86c9607fe
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
//
|
||||
|
|
|
|||
12
Source/Core/Core/PerformanceSample.h
Normal file
12
Source/Core/Core/PerformanceSample.h
Normal 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;
|
||||
};
|
||||
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user