remove DSP::Profiler*

this is not used anywhere and seems trivial to
ressurect if it's ever needed again.
This commit is contained in:
Shawn Hoffman 2021-07-17 18:26:32 -07:00
parent c89ae53677
commit e1bddd4c18
5 changed files with 0 additions and 89 deletions

View File

@ -163,8 +163,6 @@ add_library(core
HW/DSPLLE/DSPHost.cpp
HW/DSPLLE/DSPLLE.cpp
HW/DSPLLE/DSPLLE.h
HW/DSPLLE/DSPLLEGlobals.cpp
HW/DSPLLE/DSPLLEGlobals.h
HW/DSPLLE/DSPSymbols.cpp
HW/DSPLLE/DSPSymbols.h
HW/DVD/DVDInterface.cpp

View File

@ -24,7 +24,6 @@
#include "Core/DSP/DSPTables.h"
#include "Core/DSP/Interpreter/DSPInterpreter.h"
#include "Core/DSP/Jit/DSPEmitterBase.h"
#include "Core/HW/DSPLLE/DSPLLEGlobals.h"
#include "Core/HW/Memmap.h"
#include "Core/Host.h"

View File

@ -1,64 +0,0 @@
// Copyright 2008 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include "Core/HW/DSPLLE/DSPLLEGlobals.h"
#include <cinttypes>
#include "Common/CommonTypes.h"
#include "Common/IOFile.h"
#include "Core/DSP/DSPCore.h"
namespace DSP
{
#if PROFILE
#define PROFILE_MAP_SIZE 0x10000
u64 g_profileMap[PROFILE_MAP_SIZE];
bool g_profile = false;
void ProfilerStart()
{
g_profile = true;
}
void ProfilerAddDelta(int _addr, int _delta)
{
if (g_profile)
{
g_profileMap[_addr] += _delta;
}
}
void ProfilerInit()
{
memset(g_profileMap, 0, sizeof(g_profileMap));
}
void ProfilerDump(u64 count)
{
File::IOFile pFile("DSP_Prof.txt", "wt");
if (pFile)
{
fprintf(pFile.GetHandle(), "Number of DSP steps: %" PRIu64 "\n\n", count);
for (int i = 0; i < PROFILE_MAP_SIZE; i++)
{
if (g_profileMap[i] > 0)
{
fprintf(pFile.GetHandle(), "0x%04X: %" PRIu64 "\n", i, g_profileMap[i]);
}
}
}
}
#elif defined(_MSC_VER)
namespace
{
char SilenceLNK4221;
};
#endif
} // namespace DSP

View File

@ -1,20 +0,0 @@
// Copyright 2008 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "Common/CommonTypes.h"
// TODO: Get rid of this file.
namespace DSP
{
#define PROFILE 0
#if PROFILE
void ProfilerDump(u64 _count);
void ProfilerInit();
void ProfilerAddDelta(int _addr, int _delta);
void ProfilerStart();
#endif
} // namespace DSP

View File

@ -246,7 +246,6 @@
<ClInclude Include="Core\HW\DSPHLE\UCodes\Zelda.h" />
<ClInclude Include="Core\HW\DSPLLE\DSPDebugInterface.h" />
<ClInclude Include="Core\HW\DSPLLE\DSPLLE.h" />
<ClInclude Include="Core\HW\DSPLLE\DSPLLEGlobals.h" />
<ClInclude Include="Core\HW\DSPLLE\DSPSymbols.h" />
<ClInclude Include="Core\HW\DVD\DVDInterface.h" />
<ClInclude Include="Core\HW\DVD\DVDMath.h" />
@ -825,7 +824,6 @@
<ClCompile Include="Core\HW\DSPHLE\UCodes\Zelda.cpp" />
<ClCompile Include="Core\HW\DSPLLE\DSPHost.cpp" />
<ClCompile Include="Core\HW\DSPLLE\DSPLLE.cpp" />
<ClCompile Include="Core\HW\DSPLLE\DSPLLEGlobals.cpp" />
<ClCompile Include="Core\HW\DSPLLE\DSPSymbols.cpp" />
<ClCompile Include="Core\HW\DVD\DVDInterface.cpp" />
<ClCompile Include="Core\HW\DVD\DVDMath.cpp" />